mtd: nand: omap: ecc.hwctl: refactor omap_enable_hwecc_bch for ECC related GPMC configs
authorPekon Gupta <pekon@ti.com>
Mon, 3 Mar 2014 10:08:31 +0000 (15:38 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 20 Mar 2014 09:55:27 +0000 (02:55 -0700)
commitc5957a320122bed3262da7a3a57d6a89aaeb4358
treef061e67a3524c10fd41d887f36968d1db2911ad9
parent7c977c3eb29837191f4154d819e552786bc42003
mtd: nand: omap: ecc.hwctl: refactor omap_enable_hwecc_bch for ECC related GPMC configs

Lots of if..then..else conditions in omap_enable_hwecc_bch() can be avoided if
code is refactored based on ecc-scheme.

Signed-off-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/omap2.c