mtd: nand: sunxi: create sunxi_nfc_hw_ecc_enable()/disable() functions
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Wed, 30 Sep 2015 21:45:23 +0000 (23:45 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 2 Oct 2015 18:09:51 +0000 (11:09 -0700)
commitc9118ecebe1d694b463777ec33e397e226d4b149
treeb8a5ad25ee90df11809f295388ac7cf1537bec2d
parent6efadcf9592c2ed438d1692ca55168e3de5c975b
mtd: nand: sunxi: create sunxi_nfc_hw_ecc_enable()/disable() functions

The code used to enable/disable the hardware ECC engine is repeated in a
lot of places. Create two functions to avoid code duplication.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/sunxi_nand.c