From 23402315ce01071f30d7ec0c5ca7563ce41f1cc6 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Sun, 15 Nov 2009 08:15:59 -0800 Subject: command_handler: change 'args' to CMD_ARGV This patch converts all instances of 'args' in COMMAND_HANDLER routines to use CMD_ARGV macro. --- src/flash/mx3_nand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/flash/mx3_nand.c') diff --git a/src/flash/mx3_nand.c b/src/flash/mx3_nand.c index 49e1758b..459e2a60 100644 --- a/src/flash/mx3_nand.c +++ b/src/flash/mx3_nand.c @@ -73,10 +73,10 @@ NAND_DEVICE_COMMAND_HANDLER(imx31_nand_device_command) nand->controller_priv = mx3_nf_info; - mx3_nf_info->target = get_target (args[1]); + mx3_nf_info->target = get_target (CMD_ARGV[1]); if (mx3_nf_info->target == NULL) { - LOG_ERROR ("target '%s' not defined", args[1]); + LOG_ERROR ("target '%s' not defined", CMD_ARGV[1]); return ERROR_FAIL; } if (CMD_ARGC < 3) @@ -89,7 +89,7 @@ NAND_DEVICE_COMMAND_HANDLER(imx31_nand_device_command) */ { int hwecc_needed; - hwecc_needed = strcmp (args[2], "hwecc"); + hwecc_needed = strcmp (CMD_ARGV[2], "hwecc"); if (hwecc_needed == 0) { mx3_nf_info->flags.hw_ecc_enabled = 1; -- cgit v1.2.3