summaryrefslogtreecommitdiff
path: root/drivers/misc/atmel_tclib.c
diff options
context:
space:
mode:
authorPekon Gupta <pekon@ti.com>2013-10-24 18:20:22 +0530
committerEvan Wilson <evan@oliodevices.com>2014-11-29 14:49:38 -0800
commitb67f625c4524e8e42406e9e9859476bdbfe3906d (patch)
tree0ed94687669c3e1c37b1f62cc3dd2920031a2944 /drivers/misc/atmel_tclib.c
parenta2ab3c97aaaffb274b79d9aeb99e4eda58e2808f (diff)
downloadolio-linux-3.10-b67f625c4524e8e42406e9e9859476bdbfe3906d.tar.xz
olio-linux-3.10-b67f625c4524e8e42406e9e9859476bdbfe3906d.zip
mtd: nand: omap: clean-up ecc layout for BCH ecc schemes
In current implementation omap3_init_bch_tail() is a common function to define ecc layout for different BCHx ecc schemes.This patch: (1) removes omap3_init_bch_tail() and defines ecc layout for individual ecc-schemes along with populating their nand_chip->ecc data in omap_nand_probe(). This improves the readability and scalability of code for add new ecc schemes in future. (2) removes 'struct nand_bbt_descr bb_descrip_flashbased' because default nand_bbt_descr in nand_bbt.c matches the same (.len=1 for x8 devices). (3) add the check to see if NAND device has enough OOB/Spare bytes to store ECC signature of whole page, as defined by ecc-scheme. Signed-off-by: Pekon Gupta <pekon@ti.com> Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/misc/atmel_tclib.c')
0 files changed, 0 insertions, 0 deletions