From 90d09e35e4be6f0b35899238b253154249f85cb6 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Sun, 22 Nov 2009 06:24:19 -0800 Subject: remove nand_controller->register_callbacks Replace flash_driver callback with pointer to command_registration. Eliminates all related routines and allows drivers to omit commands. --- src/flash/nand.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/flash/nand.h') 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); -- cgit v1.2.3