diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2010-12-31 19:18:08 +0800 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-01-02 19:49:36 +0100 |
commit | b0759dfc538b973cce67df93f8a7fe239bfb4c74 (patch) | |
tree | 6b1e71517ff431ffda9a3f2da2bbb6a688c5e41b /src/flash/nand/driver.h | |
parent | 0136977c40e41cdaab5d775c4e370763006ad99c (diff) |
flash/nand: review NAND driver interface
From struct nand_flash_controller :
- remove unused field register_commands;
- remove field controller_ready, exported but
never referenced.
Remove dead code pointed by controller_ready.
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/flash/nand/driver.h')
-rw-r--r-- | src/flash/nand/driver.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/flash/nand/driver.h b/src/flash/nand/driver.h index deb41b2a..4edce9fa 100644 --- a/src/flash/nand/driver.h +++ b/src/flash/nand/driver.h @@ -42,9 +42,6 @@ struct nand_flash_controller /** NAND device command called when driver is instantiated during configuration. */ __NAND_DEVICE_COMMAND((*nand_device_command)); - /** Register controller specific commands as a TCL interface to the driver. */ - int (*register_commands)(struct command_context *cmd_ctx); - /** Initialize the NAND device. */ int (*init)(struct nand_device *nand); @@ -75,9 +72,6 @@ struct nand_flash_controller /** Read a page from the NAND device. */ int (*read_page)(struct nand_device *nand, uint32_t page, uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size); - /** Check if the controller is ready for more instructions with timeout. */ - int (*controller_ready)(struct nand_device *nand, int timeout); - /** Check if the NAND device is ready for more instructions with timeout. */ int (*nand_ready)(struct nand_device *nand, int timeout); }; |