mtd: docg3: fix BCH registers
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sat, 19 Nov 2011 15:02:46 +0000 (16:02 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 9 Jan 2012 18:07:16 +0000 (18:07 +0000)
BCH registers are contiguous, not on every byte. Fix the
register definitions.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Reviewed-by: Ivan Djelic <ivan.djelic@parrot.com>
Reviewed-by: Mike Dunn <mikedunn@newsguy.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/docg3.h

index 0d407be24594bab5a4cfa868d3d4a82ed01e6291..62af5aaeec437142b7a4ad8974057e4e40f160bc 100644 (file)
 #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