From: Aaron Sierra Date: Wed, 14 Jan 2015 23:41:31 +0000 (-0600) Subject: mtd: nand: Request strength instead of bytes for soft BCH X-Git-Tag: fixes-v4.0-rc1~67^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0377cdebaf3913bff693c9eea17ff6eb4d7abc8;p=pandora-kernel.git mtd: nand: Request strength instead of bytes for soft BCH Previously, we requested that drivers pass ecc.size and ecc.bytes when using NAND_ECC_SOFT_BCH. However, a driver is likely to only know the ECC strength required for its NAND, so each driver would need to perform a strength-to-bytes calculation. Avoid duplicating this calculation in each driver by asking drivers to pass ecc.size and ecc.strength so that the strength-to-bytes calculation need only be implemented once. This reverts/generalizes this commit: mtd: nand: Base BCH ECC bytes on required strength Signed-off-by: Aaron Sierra Reviewed-by: Boris Brezillon Signed-off-by: Brian Norris --- Reading git-diff-tree failed