s3c24xx: use COMMAND_HANDLER with command helper
Add S3C24XX_DEVICE_COMMAND macros to abstract common command handler conventions.
This commit is contained in:
@@ -36,11 +36,7 @@ static int s3c2443_nand_device_command(struct command_context_s *cmd_ctx, char *
|
||||
struct nand_device_s *nand)
|
||||
{
|
||||
s3c24xx_nand_controller_t *info;
|
||||
|
||||
info = s3c24xx_nand_device_command(cmd_ctx, cmd, args, argc, nand);
|
||||
if (info == NULL) {
|
||||
return ERROR_NAND_DEVICE_INVALID;
|
||||
}
|
||||
CALL_S3C24XX_DEVICE_COMMAND(nand, &info);
|
||||
|
||||
/* fill in the address fields for the core device */
|
||||
info->cmd = S3C2440_NFCMD;
|
||||
|
||||
Reference in New Issue
Block a user