flash/nor/stmsmi: Use 'bool' data type
Change-Id: I0b9d3eb6fa40cc9fed6491c8f583580fb471bcac Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: http://openocd.zylin.com/5750 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
707291cf38
commit
86131594d4
|
@ -115,7 +115,7 @@
|
|||
#define SMI_MAX_TIMEOUT (3000)
|
||||
|
||||
struct stmsmi_flash_bank {
|
||||
int probed;
|
||||
bool probed;
|
||||
uint32_t io_base;
|
||||
uint32_t bank_num;
|
||||
const struct flash_device *dev;
|
||||
|
@ -151,7 +151,7 @@ FLASH_BANK_COMMAND_HANDLER(stmsmi_flash_bank_command)
|
|||
}
|
||||
|
||||
bank->driver_priv = stmsmi_info;
|
||||
stmsmi_info->probed = 0;
|
||||
stmsmi_info->probed = false;
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
@ -531,7 +531,7 @@ static int stmsmi_probe(struct flash_bank *bank)
|
|||
|
||||
if (stmsmi_info->probed)
|
||||
free(bank->sectors);
|
||||
stmsmi_info->probed = 0;
|
||||
stmsmi_info->probed = false;
|
||||
|
||||
for (target_device = target_devices ; target_device->name ; ++target_device)
|
||||
if (target_device->tap_idcode == target->tap->idcode)
|
||||
|
@ -614,7 +614,7 @@ static int stmsmi_probe(struct flash_bank *bank)
|
|||
}
|
||||
|
||||
bank->sectors = sectors;
|
||||
stmsmi_info->probed = 1;
|
||||
stmsmi_info->probed = true;
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue