diff options
author | Mike Dunn | 2012-04-25 21:06:10 +0200 |
---|---|---|
committer | David Woodhouse | 2012-05-14 06:12:41 +0200 |
commit | e2788c98b98269a3131bffd2b57599280d7abd73 (patch) | |
tree | 9c2ae016d1a388485a1d1ff2941bc6fa9f3d17a8 /drivers/mtd/mtdpart.c | |
parent | mtd: nand: read_page() returns max_bitflips (diff) | |
download | kernel-qcow2-linux-e2788c98b98269a3131bffd2b57599280d7abd73.tar.gz kernel-qcow2-linux-e2788c98b98269a3131bffd2b57599280d7abd73.tar.xz kernel-qcow2-linux-e2788c98b98269a3131bffd2b57599280d7abd73.zip |
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 <mikedunn@newsguy.com>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/mtdpart.c')
0 files changed, 0 insertions, 0 deletions