summaryrefslogtreecommitdiff
path: root/src/flash/nand_ecc.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 11:32:17 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:14 -0800
commit2f6e56e38320350bb300b363d0b3737fa8d1f3ea (patch)
tree18a4c4b3d39b789af7c8fe44387888c7ec4f294b /src/flash/nand_ecc.c
parent0f1163e823c6ca3c2a81fa296157f5dde0635fea (diff)
downloadopenocd+libswd-2f6e56e38320350bb300b363d0b3737fa8d1f3ea.tar.gz
openocd+libswd-2f6e56e38320350bb300b363d0b3737fa8d1f3ea.tar.bz2
openocd+libswd-2f6e56e38320350bb300b363d0b3737fa8d1f3ea.tar.xz
openocd+libswd-2f6e56e38320350bb300b363d0b3737fa8d1f3ea.zip
nand_device_t -> struct nand_device
Remove misleading typedef and redundant suffix from struct nand_device.
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 81d2bebc..7aa1519d 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 *nand, const uint8_t *dat, uint8_t *ecc_code)
+int nand_calculate_ecc(struct nand_device *nand, const uint8_t *dat, uint8_t *ecc_code)
{
uint8_t idx, reg1, reg2, reg3, tmp1, tmp2;
int i;