diff options
Diffstat (limited to 'src/flash/str7x.c')
-rw-r--r-- | src/flash/str7x.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/flash/str7x.c b/src/flash/str7x.c index e72946f7..7edffac9 100644 --- a/src/flash/str7x.c +++ b/src/flash/str7x.c @@ -691,14 +691,9 @@ static const struct command_registration str7x_command_handlers[] = { COMMAND_REGISTRATION_DONE }; -static int str7x_register_commands(struct command_context *cmd_ctx) -{ - return register_commands(cmd_ctx, NULL, str7x_command_handlers); -} - struct flash_driver str7x_flash = { .name = "str7x", - .register_commands = &str7x_register_commands, + .commands = str7x_command_handlers, .flash_bank_command = &str7x_flash_bank_command, .erase = &str7x_erase, .protect = &str7x_protect, |