flash: rename CamelCase symbols
Each driver is almost self-contained, with no cross dependency. Changing symbol names in one drive does not impact the other. Change-Id: Ic09f844f922a35cf0a9dc23fcd61d035b38308b3 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6299 Tested-by: jenkins Reviewed-by: Marc Schink <dev@zapb.de>
This commit is contained in:
@@ -345,7 +345,7 @@ static int default_flash_mem_blank_check(struct flash_bank *bank)
|
||||
{
|
||||
struct target *target = bank->target;
|
||||
const int buffer_size = 1024;
|
||||
uint32_t nBytes;
|
||||
uint32_t n_bytes;
|
||||
int retval = ERROR_OK;
|
||||
|
||||
if (bank->target->state != TARGET_HALTED) {
|
||||
@@ -373,8 +373,8 @@ static int default_flash_mem_blank_check(struct flash_bank *bank)
|
||||
if (retval != ERROR_OK)
|
||||
goto done;
|
||||
|
||||
for (nBytes = 0; nBytes < chunk; nBytes++) {
|
||||
if (buffer[nBytes] != bank->erased_value) {
|
||||
for (n_bytes = 0; n_bytes < chunk; n_bytes++) {
|
||||
if (buffer[n_bytes] != bank->erased_value) {
|
||||
bank->sectors[i].is_erased = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user