Change-Id: Id5567102013648b1565078310abc27bee4446992
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: http://openocd.zylin.com/5748
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
struct sh_qspi_flash_bank {
const struct flash_device *dev;
uint32_t io_base;
- int probed;
+ bool probed;
struct working_area *io_algorithm;
struct working_area *source;
unsigned int buffer_size;
if (info->probed)
free(bank->sectors);
- info->probed = 0;
+ info->probed = false;
for (target_device = target_devices; target_device->name;
++target_device)
}
bank->sectors = sectors;
- info->probed = 1;
+ info->probed = true;
return ERROR_OK;
}