summaryrefslogtreecommitdiff
path: root/src/flash/mx3_nand.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-10 00:53:40 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 10:51:46 -0800
commit670f999e7a1ec04cda599a5487de068379e36f0e (patch)
treefa1c1cd69f2e741bbf689689f1a4a4533cbb2e8b /src/flash/mx3_nand.c
parent0796dfff89bf00f82a780d7719767bcffe881d67 (diff)
downloadopenocd_libswd-670f999e7a1ec04cda599a5487de068379e36f0e.tar.gz
openocd_libswd-670f999e7a1ec04cda599a5487de068379e36f0e.tar.bz2
openocd_libswd-670f999e7a1ec04cda599a5487de068379e36f0e.tar.xz
openocd_libswd-670f999e7a1ec04cda599a5487de068379e36f0e.zip
nand: add NAND_DEVICE_COMMAND_HANDLER macro
Abstracts the extended NAND command handling to allow the function signature to be controlled by __COMMAND_HANDLER.
Diffstat (limited to 'src/flash/mx3_nand.c')
-rw-r--r--src/flash/mx3_nand.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/flash/mx3_nand.c b/src/flash/mx3_nand.c
index f6a75ef7..a51f8c8d 100644
--- a/src/flash/mx3_nand.c
+++ b/src/flash/mx3_nand.c
@@ -61,9 +61,7 @@ static int imx31_command (struct nand_device_s *nand, uint8_t command);
static int imx31_address (struct nand_device_s *nand, uint8_t address);
static int imx31_controller_ready (struct nand_device_s *nand, int tout);
-static int imx31_nand_device_command (struct command_context_s *cmd_ctx,
- char *cmd, char **args, int argc,
- struct nand_device_s *nand)
+NAND_DEVICE_COMMAND_HANDLER(imx31_nand_device_command)
{
mx3_nf_controller_t *mx3_nf_info;
mx3_nf_info = malloc (sizeof (mx3_nf_controller_t));