From: Mike Dunn Date: Wed, 25 Apr 2012 19:06:10 +0000 (-0700) Subject: mtd: nand: add sanity check of ecc strength to nand_scan_tail() X-Git-Tag: v3.5-rc1~8^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2788c98b98269a3131bffd2b57599280d7abd73;p=pandora-kernel.git 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!¹ ¹ http://lists.infradead.org/pipermail/linux-mtd/2012-April/040890.html Signed-off-by: Mike Dunn Acked-by: Brian Norris Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed