flash/nor/jtagspi: Use 'bool' data type
Change-Id: I0e81dd476c6b3ec7fee6c84ab1bfcf9bca90c532 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: http://openocd.zylin.com/5742 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
20196f86d4
commit
e6e154e103
|
@ -30,7 +30,7 @@
|
||||||
struct jtagspi_flash_bank {
|
struct jtagspi_flash_bank {
|
||||||
struct jtag_tap *tap;
|
struct jtag_tap *tap;
|
||||||
const struct flash_device *dev;
|
const struct flash_device *dev;
|
||||||
int probed;
|
bool probed;
|
||||||
uint32_t ir;
|
uint32_t ir;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ FLASH_BANK_COMMAND_HANDLER(jtagspi_flash_bank_command)
|
||||||
bank->driver_priv = info;
|
bank->driver_priv = info;
|
||||||
|
|
||||||
info->tap = NULL;
|
info->tap = NULL;
|
||||||
info->probed = 0;
|
info->probed = false;
|
||||||
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[6], info->ir);
|
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[6], info->ir);
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
|
@ -170,7 +170,7 @@ static int jtagspi_probe(struct flash_bank *bank)
|
||||||
|
|
||||||
if (info->probed)
|
if (info->probed)
|
||||||
free(bank->sectors);
|
free(bank->sectors);
|
||||||
info->probed = 0;
|
info->probed = false;
|
||||||
|
|
||||||
if (bank->target->tap == NULL) {
|
if (bank->target->tap == NULL) {
|
||||||
LOG_ERROR("Target has no JTAG tap");
|
LOG_ERROR("Target has no JTAG tap");
|
||||||
|
@ -224,7 +224,7 @@ static int jtagspi_probe(struct flash_bank *bank)
|
||||||
}
|
}
|
||||||
|
|
||||||
bank->sectors = sectors;
|
bank->sectors = sectors;
|
||||||
info->probed = 1;
|
info->probed = true;
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue