mtd: add ECC info for nand_flash_dev{}
authorHuang Shijie <b32955@freescale.com>
Fri, 17 May 2013 03:17:31 +0000 (11:17 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 30 Aug 2013 20:34:45 +0000 (21:34 +0100)
commit2dc0bdd91bb63f7d5755137177315c49637f6a96
tree0bc0bc8948d4f7d16515d3682316d0ea8914a3ee
parente2985fc1d684927ce1dd5e5e6d35db8b52302685
mtd: add ECC info for nand_flash_dev{}

Add an instance of an anonymous struct to store the ECC info for full id
nand chips.
@ecc.strength_ds: ECC correctability from the datasheet.
@ecc.step_ds: ECC size required by the @ecc.strength_ds,

These two fields are all from the datasheet.

Also add the necessary macros to make the code simple and clean.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
include/linux/mtd/nand.h