]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd/docg3: fix protection areas reading
authorRobert Jarzmik <robert.jarzmik@free.fr>
Sat, 19 Nov 2011 15:02:45 +0000 (16:02 +0100)
committerArtem Bityutskiy <Artem.Bityutskiy@intel.com>
Thu, 24 Nov 2011 21:26:56 +0000 (23:26 +0200)
commit34d565bc2e8930b4df5e154543e5d1d7223715d4
tree51bec7d2de3b5236c5dc065cc91ca6d9bd1a7dcf
parent01c22cd8a376f03ac8e6c6d1e7caf4fdcbfb80c9
mtd/docg3: fix protection areas reading

The protection areas boundaries were on 16bit registers, not
8bit. This is consistent with block numbers, which can
extend up to 4096 on bigger chips (and is 2048 on the
docg3).

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