diff options
author | Marc Schink <dev@zapb.de> | 2020-07-01 10:24:11 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-07-08 22:06:08 +0100 |
commit | 02fac04b4dee2af77dafeb09df5bb0c70f6bc4a1 (patch) | |
tree | 9bfab99cca78f4e803389a6667fe7517fd4c0b8f | |
parent | 19e1a30991cc892b35c3b52e25eb24fd90c14b7a (diff) | |
download | riscv-openocd-02fac04b4dee2af77dafeb09df5bb0c70f6bc4a1.zip riscv-openocd-02fac04b4dee2af77dafeb09df5bb0c70f6bc4a1.tar.gz riscv-openocd-02fac04b4dee2af77dafeb09df5bb0c70f6bc4a1.tar.bz2 |
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>
-rw-r--r-- | src/flash/nor/fespi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flash/nor/fespi.c b/src/flash/nor/fespi.c index 134fba6..4afa1b8 100644 --- a/src/flash/nor/fespi.c +++ b/src/flash/nor/fespi.c @@ -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; } |