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:
Marc Schink 2020-07-01 10:24:11 +02:00 committed by Antonio Borneo
parent 19e1a30991
commit 02fac04b4d
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}