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:
@@ -31,9 +31,7 @@
|
||||
#include "s3c24xx_nand.h"
|
||||
|
||||
|
||||
static int s3c2443_nand_device_command(struct command_context_s *cmd_ctx, char *cmd,
|
||||
char **args, int argc,
|
||||
struct nand_device_s *nand)
|
||||
NAND_DEVICE_COMMAND_HANDLER(s3c2443_nand_device_command)
|
||||
{
|
||||
s3c24xx_nand_controller_t *info;
|
||||
CALL_S3C24XX_DEVICE_COMMAND(nand, &info);
|
||||
|
||||
Reference in New Issue
Block a user