mtd: docg3: fix BCH registers
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Jan 9 13:59:03 EST 2012
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=34db8a5a72c5c5eb5d2811f237dcc9bf3c6425a9
Commit: 34db8a5a72c5c5eb5d2811f237dcc9bf3c6425a9
Parent: dbc26d98f8b4a3d1d2f25d997a0a0aba4ea46add
Author: Robert Jarzmik <robert.jarzmik at free.fr>
AuthorDate: Sat Nov 19 16:02:46 2011 +0100
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Jan 9 18:07:16 2012 +0000
mtd: docg3: fix BCH registers
BCH registers are contiguous, not on every byte. Fix the
register definitions.
Signed-off-by: Robert Jarzmik <robert.jarzmik at free.fr>
Reviewed-by: Ivan Djelic <ivan.djelic at parrot.com>
Reviewed-by: Mike Dunn <mikedunn at newsguy.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/devices/docg3.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/devices/docg3.h b/drivers/mtd/devices/docg3.h
index 0d407be..62af5aa 100644
--- a/drivers/mtd/devices/docg3.h
+++ b/drivers/mtd/devices/docg3.h
@@ -105,7 +105,7 @@
#define DOC_ECCCONF1 0x1042
#define DOC_ECCPRESET 0x1044
#define DOC_HAMMINGPARITY 0x1046
-#define DOC_BCH_SYNDROM(idx) (0x1048 + (idx << 1))
+#define DOC_BCH_SYNDROM(idx) (0x1048 + (idx << 0))
#define DOC_PROTECTION 0x1056
#define DOC_DPS0_ADDRLOW 0x1060
More information about the linux-mtd-cvs
mailing list