mtd: nand: omap2: Update nerrors using ecc.strength
authorPhilip Avinash <avinashphilip@ti.com>
Fri, 4 Jan 2013 07:56:49 +0000 (13:26 +0530)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 4 Feb 2013 07:26:29 +0000 (09:26 +0200)
commitc3e4b995e47e8f72297779852907f6d3ecd75139
tree04e8e4dc014f8d14a2fac95f83fa87f26e61ffd4
parenta8459f21ed48fc366ad49ce9828f6bbb1cfac9a9
mtd: nand: omap2: Update nerrors using ecc.strength

Remove check of ecc bytes with 13, number of errors can directly update
from nand ecc strength. This will increase re-usability of the code.
Also add macro definitions BCH8_ERROR_MAX & BCH4_ERROR_MAX for better
readability and cleaner code.

Signed-off-by: Philip Avinash <avinashphilip@ti.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/nand/omap2.c