flash/nor/em357: Use 'bool' data type
Change-Id: I251b62275d204fdc315cd167685799c15d4e7cf4 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: http://openocd.zylin.com/5739 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
f23525e5dd
commit
19e1a30991
|
@ -87,7 +87,7 @@ struct em357_options {
|
||||||
struct em357_flash_bank {
|
struct em357_flash_bank {
|
||||||
struct em357_options option_bytes;
|
struct em357_options option_bytes;
|
||||||
int ppage_size;
|
int ppage_size;
|
||||||
int probed;
|
bool probed;
|
||||||
};
|
};
|
||||||
|
|
||||||
static int em357_mass_erase(struct flash_bank *bank);
|
static int em357_mass_erase(struct flash_bank *bank);
|
||||||
|
@ -104,7 +104,7 @@ FLASH_BANK_COMMAND_HANDLER(em357_flash_bank_command)
|
||||||
em357_info = malloc(sizeof(struct em357_flash_bank));
|
em357_info = malloc(sizeof(struct em357_flash_bank));
|
||||||
bank->driver_priv = em357_info;
|
bank->driver_priv = em357_info;
|
||||||
|
|
||||||
em357_info->probed = 0;
|
em357_info->probed = false;
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
@ -680,7 +680,7 @@ static int em357_probe(struct flash_bank *bank)
|
||||||
int page_size;
|
int page_size;
|
||||||
uint32_t base_address = 0x08000000;
|
uint32_t base_address = 0x08000000;
|
||||||
|
|
||||||
em357_info->probed = 0;
|
em357_info->probed = false;
|
||||||
|
|
||||||
switch (bank->size) {
|
switch (bank->size) {
|
||||||
case 0x10000:
|
case 0x10000:
|
||||||
|
@ -741,7 +741,7 @@ static int em357_probe(struct flash_bank *bank)
|
||||||
bank->sectors[i].is_protected = 1;
|
bank->sectors[i].is_protected = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
em357_info->probed = 1;
|
em357_info->probed = true;
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue