mtd: mxc_nand: generate nand_ecclayout for 8 bit ECC
authorBaruch Siach <baruch@tkos.co.il>
Wed, 13 May 2015 08:17:39 +0000 (11:17 +0300)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 21 May 2015 04:32:18 +0000 (21:32 -0700)
commit8eeb4c521a8047ea73da0d6eb2d87a7f60cdd99a
tree93d0c20a09775351094764cf91147e4993d83245
parentc19900edff983cfa2ddb92830d59f8e9550fde4f
mtd: mxc_nand: generate nand_ecclayout for 8 bit ECC

Hardware 8 bit ECC requires a different nand_ecclayout. Instead of adding yet
another static struct nand_ecclayout, generate it in code.

Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/mxc_nand.c