flash/nor/lpcspifi: Use 'bool' data type

Change-Id: I0485a7885fe154f983c7a7ce84cbedb0ba32ca31
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: http://openocd.zylin.com/5743
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Marc Schink 2020-07-01 10:24:53 +02:00 committed by Antonio Borneo
parent e6e154e103
commit 5ac425365a
1 changed files with 4 additions and 4 deletions

View File

@ -47,7 +47,7 @@
#define SPIFI_INIT_STACK_SIZE 512 #define SPIFI_INIT_STACK_SIZE 512
struct lpcspifi_flash_bank { struct lpcspifi_flash_bank {
int probed; bool probed;
uint32_t ssp_base; uint32_t ssp_base;
uint32_t io_base; uint32_t io_base;
uint32_t ioconfig_base; uint32_t ioconfig_base;
@ -72,7 +72,7 @@ FLASH_BANK_COMMAND_HANDLER(lpcspifi_flash_bank_command)
} }
bank->driver_priv = lpcspifi_info; bank->driver_priv = lpcspifi_info;
lpcspifi_info->probed = 0; lpcspifi_info->probed = false;
return ERROR_OK; return ERROR_OK;
} }
@ -849,7 +849,7 @@ static int lpcspifi_probe(struct flash_bank *bank)
/* If we've already probed, we should be fine to skip this time. */ /* If we've already probed, we should be fine to skip this time. */
if (lpcspifi_info->probed) if (lpcspifi_info->probed)
return ERROR_OK; return ERROR_OK;
lpcspifi_info->probed = 0; lpcspifi_info->probed = false;
lpcspifi_info->ssp_base = 0x40083000; lpcspifi_info->ssp_base = 0x40083000;
lpcspifi_info->io_base = 0x400F4000; lpcspifi_info->io_base = 0x400F4000;
@ -908,7 +908,7 @@ static int lpcspifi_probe(struct flash_bank *bank)
bank->sectors = sectors; bank->sectors = sectors;
lpcspifi_info->probed = 1; lpcspifi_info->probed = true;
return ERROR_OK; return ERROR_OK;
} }