]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: nand: add sanity check of ecc strength to nand_scan_tail()
authorMike Dunn <mikedunn@newsguy.com>
Wed, 25 Apr 2012 19:06:10 +0000 (12:06 -0700)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sun, 29 Apr 2012 19:22:28 +0000 (22:22 +0300)
commiteb6e1f866ddaaa1267c4a381af644a97b8444897
treed6d1177cef9758527ce9596c2bc355125dd18165
parent6bf87bf989bfdfc78fb2c5cd55de4bab9b572992
mtd: nand: add sanity check of ecc strength to nand_scan_tail()

This patch adds sanity checks that ensure that drivers for controllers with
hardware ECC set the 'strength' element in struct nand_ecc_ctrl.  Also stylistic
changes to the line that calculates strength for software ECC.

This v2 simplifies the check.  Thanks Brian! [1]

[1] http://lists.infradead.org/pipermail/linux-mtd/2012-April/040890.html

Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/nand/nand_base.c