]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: add ECC info for nand_flash_dev{}
authorHuang Shijie <b32955@freescale.com>
Fri, 17 May 2013 03:17:31 +0000 (11:17 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 8 Aug 2013 22:57:35 +0000 (15:57 -0700)
commit08f6b842d56fd93ecb8f244475bbb5cf041feecc
treec6388a0f3bcdf8d2ab20488d3c705f7b99eeab12
parentef090a940e586b8ce9e28e0d44a5ba9ba6f021c5
mtd: add ECC info for nand_flash_dev{}

Add an instance of an anonymous struct to store the ECC infor 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>
include/linux/mtd/nand.h