summaryrefslogtreecommitdiff
path: root/src/flash/nand_ecc.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/nand_ecc.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/nand_ecc.c')
-rw-r--r--src/flash/nand_ecc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nand_ecc.c b/src/flash/nand_ecc.c
index c154d697..81d2bebc 100644
--- a/src/flash/nand_ecc.c
+++ b/src/flash/nand_ecc.c
@@ -68,7 +68,7 @@ static const uint8_t nand_ecc_precalc_table[] = {
/*
* nand_calculate_ecc - Calculate 3-byte ECC for 256-byte block
*/
-int nand_calculate_ecc(struct nand_device_s *device, const uint8_t *dat, uint8_t *ecc_code)
+int nand_calculate_ecc(struct nand_device_s *nand, const uint8_t *dat, uint8_t *ecc_code)
{
uint8_t idx, reg1, reg2, reg3, tmp1, tmp2;
int i;