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

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

View File

@ -61,7 +61,7 @@ enum fm3_flash_type {
struct fm3_flash_bank {
enum fm3_variant variant;
enum fm3_flash_type flashtype;
int probed;
bool probed;
};
FLASH_BANK_COMMAND_HANDLER(fm3_flash_bank_command)
@ -132,7 +132,7 @@ FLASH_BANK_COMMAND_HANDLER(fm3_flash_bank_command)
return ERROR_FLASH_BANK_INVALID;
}
fm3_info->probed = 0;
fm3_info->probed = false;
return ERROR_OK;
}
@ -657,7 +657,7 @@ static int fm3_probe(struct flash_bank *bank)
*/
num_pages = 10; /* max number of Flash pages for malloc */
fm3_info->probed = 0;
fm3_info->probed = false;
bank->sectors = malloc(sizeof(struct flash_sector) * num_pages);
bank->base = 0x00000000;
@ -797,7 +797,7 @@ static int fm3_probe(struct flash_bank *bank)
bank->sectors[9].is_protected = -1;
}
fm3_info->probed = 1;
fm3_info->probed = true;
return ERROR_OK;
}