summaryrefslogtreecommitdiff
path: root/src/flash/at91sam3.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/at91sam3.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/at91sam3.c')
-rw-r--r--src/flash/at91sam3.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/flash/at91sam3.c b/src/flash/at91sam3.c
index 75e84953..be17a5f8 100644
--- a/src/flash/at91sam3.c
+++ b/src/flash/at91sam3.c
@@ -2501,14 +2501,9 @@ static const struct command_registration at91sam3_command_handlers[] = {
COMMAND_REGISTRATION_DONE
};
-static int sam3_register_commands(struct command_context *cmd_ctx)
-{
- return register_commands(cmd_ctx, NULL, at91sam3_command_handlers);
-}
-
struct flash_driver at91sam3_flash = {
.name = "at91sam3",
- .register_commands = &sam3_register_commands,
+ .commands = at91sam3_command_handlers,
.flash_bank_command = &sam3_flash_bank_command,
.erase = &sam3_erase,
.protect = &sam3_protect,