summaryrefslogtreecommitdiff
path: root/src/flash/s3c2412_nand.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-12 21:19:41 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-12 22:25:55 -0800
commite8e94ab2454566fb9a226693e5c1de2264634a48 (patch)
tree2a442d8b343a18cfd2da98826943de74b4a6b02e /src/flash/s3c2412_nand.c
parentd47764ff7176b6e3d97b49e82d4db7fe17c8e552 (diff)
downloadopenocd_libswd-e8e94ab2454566fb9a226693e5c1de2264634a48.tar.gz
openocd_libswd-e8e94ab2454566fb9a226693e5c1de2264634a48.tar.bz2
openocd_libswd-e8e94ab2454566fb9a226693e5c1de2264634a48.tar.xz
openocd_libswd-e8e94ab2454566fb9a226693e5c1de2264634a48.zip
nand: rename device to nand
To be more informative (and consistent with flash and pld trees), change 'device' parameter name to 'nand' in NAND source files. This change eliminates confusing 'device->device->' instance from the code, and it simplifies the forthcoming command handler patches.
Diffstat (limited to 'src/flash/s3c2412_nand.c')
-rw-r--r--src/flash/s3c2412_nand.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/flash/s3c2412_nand.c b/src/flash/s3c2412_nand.c
index a995acc7..5c9d3199 100644
--- a/src/flash/s3c2412_nand.c
+++ b/src/flash/s3c2412_nand.c
@@ -32,11 +32,11 @@
static int s3c2412_nand_device_command(struct command_context_s *cmd_ctx, char *cmd,
char **args, int argc,
- struct nand_device_s *device)
+ struct nand_device_s *nand)
{
s3c24xx_nand_controller_t *info;
- info = s3c24xx_nand_device_command(cmd_ctx, cmd, args, argc, device);
+ info = s3c24xx_nand_device_command(cmd_ctx, cmd, args, argc, nand);
if (info == NULL) {
return ERROR_NAND_DEVICE_INVALID;
}
@@ -50,9 +50,9 @@ static int s3c2412_nand_device_command(struct command_context_s *cmd_ctx, char *
return ERROR_OK;
}
-static int s3c2412_init(struct nand_device_s *device)
+static int s3c2412_init(struct nand_device_s *nand)
{
- s3c24xx_nand_controller_t *s3c24xx_info = device->controller_priv;
+ s3c24xx_nand_controller_t *s3c24xx_info = nand->controller_priv;
target_t *target = s3c24xx_info->target;
target_write_u32(target, S3C2410_NFCONF,