summaryrefslogtreecommitdiff
path: root/src/flash/flash.h
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/flash.h
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/flash.h')
-rw-r--r--src/flash/flash.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/flash/flash.h b/src/flash/flash.h
index ac1600e4..92727bf9 100644
--- a/src/flash/flash.h
+++ b/src/flash/flash.h
@@ -91,13 +91,11 @@ struct flash_driver
char *name;
/**
- * Registers driver-specific commands. When called (during the
- * "flash bank" command), the driver may register addition
+ * An array of driver-specific commands to register. When called
+ * during the "flash bank" command, the driver can register addition
* commands to support new flash chip functions.
- *
- * @returns ERROR_OK if successful; otherwise, an error code.
*/
- int (*register_commands)(struct command_context *cmd_ctx);
+ const struct command_registration *commands;
/**
* Finish the "flash bank" command for @a bank. The