summaryrefslogtreecommitdiff
path: root/src/flash/faux.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-22 06:12:04 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-24 21:37:35 -0800
commitad090413a8dfacccc993ff15b8376e0f2bd56712 (patch)
tree361fbbe3c90adaa54cb1c894ad108647224cdd3f /src/flash/faux.c
parent6b9bb584a5edec4889b12ed3f99a1e2eeab1ada2 (diff)
downloadopenocd+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/faux.c')
-rw-r--r--src/flash/faux.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/flash/faux.c b/src/flash/faux.c
index 558d7b07..adfc7bd3 100644
--- a/src/flash/faux.c
+++ b/src/flash/faux.c
@@ -87,11 +87,6 @@ FLASH_BANK_COMMAND_HANDLER(faux_flash_bank_command)
return ERROR_OK;
}
-static int faux_register_commands(struct command_context *cmd_ctx)
-{
- return ERROR_OK;
-}
-
static int faux_erase(struct flash_bank *bank, int first, int last)
{
struct faux_flash_bank *info = bank->driver_priv;
@@ -130,7 +125,6 @@ static int faux_probe(struct flash_bank *bank)
struct flash_driver faux_flash = {
.name = "faux",
- .register_commands = &faux_register_commands,
.flash_bank_command = &faux_flash_bank_command,
.erase = &faux_erase,
.protect = &faux_protect,