diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-22 06:24:19 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-24 21:37:35 -0800 |
commit | 90d09e35e4be6f0b35899238b253154249f85cb6 (patch) | |
tree | aecc837b38ec8386d7ff889f7ca1abc54cbac5a4 /src/flash/nand.h | |
parent | ad090413a8dfacccc993ff15b8376e0f2bd56712 (diff) |
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.h | 2 |
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); |