flash/nor/fespi: Use 'bool' data type
Change-Id: I4583b4475b2fa2733db0861bfe8f52f0a514c472 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: http://openocd.zylin.com/5740 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
19e1a30991
commit
02fac04b4d
|
@ -122,7 +122,7 @@
|
|||
|
||||
|
||||
struct fespi_flash_bank {
|
||||
int probed;
|
||||
bool probed;
|
||||
target_addr_t ctrl_base;
|
||||
const struct flash_device *dev;
|
||||
};
|
||||
|
@ -157,7 +157,7 @@ FLASH_BANK_COMMAND_HANDLER(fespi_flash_bank_command)
|
|||
}
|
||||
|
||||
bank->driver_priv = fespi_info;
|
||||
fespi_info->probed = 0;
|
||||
fespi_info->probed = false;
|
||||
fespi_info->ctrl_base = 0;
|
||||
if (CMD_ARGC >= 7) {
|
||||
COMMAND_PARSE_ADDRESS(CMD_ARGV[6], fespi_info->ctrl_base);
|
||||
|
@ -916,7 +916,7 @@ static int fespi_probe(struct flash_bank *bank)
|
|||
|
||||
if (fespi_info->probed)
|
||||
free(bank->sectors);
|
||||
fespi_info->probed = 0;
|
||||
fespi_info->probed = false;
|
||||
|
||||
if (fespi_info->ctrl_base == 0) {
|
||||
for (target_device = target_devices ; target_device->name ; ++target_device)
|
||||
|
@ -999,7 +999,7 @@ static int fespi_probe(struct flash_bank *bank)
|
|||
}
|
||||
|
||||
bank->sectors = sectors;
|
||||
fespi_info->probed = 1;
|
||||
fespi_info->probed = true;
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue