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/cfi.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/cfi.c')
-rw-r--r-- | src/flash/cfi.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/flash/cfi.c b/src/flash/cfi.c index b92ecbd8..6dbffb9e 100644 --- a/src/flash/cfi.c +++ b/src/flash/cfi.c @@ -589,11 +589,6 @@ static int cfi_intel_info(struct flash_bank *bank, char *buf, int buf_size) return ERROR_OK; } -static int cfi_register_commands(struct command_context *cmd_ctx) -{ - return ERROR_OK; -} - /* flash_bank cfi <base> <size> <chip_width> <bus_width> <target#> [options] */ FLASH_BANK_COMMAND_HANDLER(cfi_flash_bank_command) @@ -2623,7 +2618,6 @@ static int cfi_info(struct flash_bank *bank, char *buf, int buf_size) struct flash_driver cfi_flash = { .name = "cfi", - .register_commands = &cfi_register_commands, .flash_bank_command = &cfi_flash_bank_command, .erase = &cfi_erase, .protect = &cfi_protect, |