diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-22 06:12:04 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-24 21:37:35 -0800 |
commit | ad090413a8dfacccc993ff15b8376e0f2bd56712 (patch) | |
tree | 361fbbe3c90adaa54cb1c894ad108647224cdd3f /src/flash/ecos.c | |
parent | 6b9bb584a5edec4889b12ed3f99a1e2eeab1ada2 (diff) | |
download | openocd+libswd-ad090413a8dfacccc993ff15b8376e0f2bd56712.tar.gz openocd+libswd-ad090413a8dfacccc993ff15b8376e0f2bd56712.tar.bz2 openocd+libswd-ad090413a8dfacccc993ff15b8376e0f2bd56712.tar.xz openocd+libswd-ad090413a8dfacccc993ff15b8376e0f2bd56712.zip |
remove flash_driver->register_callbacks
Replace flash_driver callback with pointer to command_registration.
Eliminates all related routines and allows drivers to omit commands.
Diffstat (limited to 'src/flash/ecos.c')
-rw-r--r-- | src/flash/ecos.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/flash/ecos.c b/src/flash/ecos.c index f6f3307b..7a0b26f3 100644 --- a/src/flash/ecos.c +++ b/src/flash/ecos.c @@ -336,11 +336,6 @@ static int ecosflash_probe(struct flash_bank *bank) return ERROR_OK; } -static int ecosflash_register_commands(struct command_context *cmd_ctx) -{ - return ERROR_OK; -} - #if 0 static void command(struct flash_bank *bank, uint8_t cmd, uint8_t *cmd_buf) { @@ -437,7 +432,6 @@ static int ecosflash_handle_gpnvm_command(struct command_context *cmd_ctx, char struct flash_driver ecosflash_flash = { .name = "ecosflash", - .register_commands = &ecosflash_register_commands, .flash_bank_command = &ecosflash_flash_bank_command, .erase = &ecosflash_erase, .protect = &ecosflash_protect, |