nand: add NAND_DEVICE_COMMAND_HANDLER macro
Abstracts the extended NAND command handling to allow the function signature to be controlled by __COMMAND_HANDLER.
This commit is contained in:
@@ -29,7 +29,7 @@ static int lpc3180_controller_ready(struct nand_device_s *nand, int timeout);
|
||||
|
||||
/* nand device lpc3180 <target#> <oscillator_frequency>
|
||||
*/
|
||||
static int lpc3180_nand_device_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct nand_device_s *nand)
|
||||
NAND_DEVICE_COMMAND_HANDLER(lpc3180_nand_device_command)
|
||||
{
|
||||
if (argc < 3)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user