projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cfi_intel_pri_ext_t -> struct cfi_intel_pri_ext
[fw/openocd]
/
src
/
flash
/
s3c2443_nand.c
diff --git
a/src/flash/s3c2443_nand.c
b/src/flash/s3c2443_nand.c
index 82d9b8eae7bb743b05f2dc0175eaed22aca6ac5e..af7d9a9aa01ce9050070f31fc351bcadf58d558a 100644
(file)
--- a/
src/flash/s3c2443_nand.c
+++ b/
src/flash/s3c2443_nand.c
@@
-31,16
+31,10
@@
#include "s3c24xx_nand.h"
#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;
{
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;
/* fill in the address fields for the core device */
info->cmd = S3C2440_NFCMD;