summaryrefslogtreecommitdiff
path: root/src/flash/nand.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-22 06:24:19 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-24 21:37:35 -0800
commit90d09e35e4be6f0b35899238b253154249f85cb6 (patch)
treeaecc837b38ec8386d7ff889f7ca1abc54cbac5a4 /src/flash/nand.h
parentad090413a8dfacccc993ff15b8376e0f2bd56712 (diff)
downloadopenocd+libswd-90d09e35e4be6f0b35899238b253154249f85cb6.tar.gz
openocd+libswd-90d09e35e4be6f0b35899238b253154249f85cb6.tar.bz2
openocd+libswd-90d09e35e4be6f0b35899238b253154249f85cb6.tar.xz
openocd+libswd-90d09e35e4be6f0b35899238b253154249f85cb6.zip
remove nand_controller->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/nand.h')
-rw-r--r--src/flash/nand.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nand.h b/src/flash/nand.h
index af52c770..b780f284 100644
--- a/src/flash/nand.h
+++ b/src/flash/nand.h
@@ -35,8 +35,8 @@ struct nand_device;
struct nand_flash_controller
{
char *name;
+ const struct command_registration *commands;
__NAND_DEVICE_COMMAND((*nand_device_command));
- int (*register_commands)(struct command_context *cmd_ctx);
int (*init)(struct nand_device *nand);
int (*reset)(struct nand_device *nand);
int (*command)(struct nand_device *nand, uint8_t command);