flash/nor: remove empty command definitions
The value of struct flash_driver::command can be NULL when the flash driver does not need to add any new command. Remove empty command definitions. Change-Id: I5413967d4069030234469822d24e9825425ae012 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7120 Reviewed-by: Tomas Vanek <vanekt@fbl.cz> Tested-by: jenkins
This commit is contained in:
@@ -688,24 +688,8 @@ FLASH_BANK_COMMAND_HANDLER(fm4_flash_bank_command)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static const struct command_registration fm4_exec_command_handlers[] = {
|
||||
COMMAND_REGISTRATION_DONE
|
||||
};
|
||||
|
||||
static const struct command_registration fm4_command_handlers[] = {
|
||||
{
|
||||
.name = "fm4",
|
||||
.mode = COMMAND_ANY,
|
||||
.help = "fm4 flash command group",
|
||||
.usage = "",
|
||||
.chain = fm4_exec_command_handlers,
|
||||
},
|
||||
COMMAND_REGISTRATION_DONE
|
||||
};
|
||||
|
||||
const struct flash_driver fm4_flash = {
|
||||
.name = "fm4",
|
||||
.commands = fm4_command_handlers,
|
||||
.flash_bank_command = fm4_flash_bank_command,
|
||||
.info = fm4_get_info_command,
|
||||
.probe = fm4_probe,
|
||||
|
||||
Reference in New Issue
Block a user