lkml.org 
[lkml]   [2011]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 04/13] mtd/docg3: fix BCH registers
    Date
    BCH registers are contiguous, not on every byte. Fix the
    register definitions.

    Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
    ---
    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
    --
    1.7.5.4


    \
     
     \ /
      Last update: 2011-10-28 19:55    [from the cache]
    ©2003-2011 Jasper Spaans