mtd: nand: sunxi: make use of sunxi_nfc_hw_ecc_read/write_chunk()
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Wed, 30 Sep 2015 21:45:25 +0000 (23:45 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 2 Oct 2015 18:09:51 +0000 (11:09 -0700)
commitb462551c125a125d1782b53d4c7ee7fd35534641
treebb23da35aee12fb665c11f18e4d4767e83c4f5e7
parent913821bdd2110b4569540c532ec50f3e61a7c9ba
mtd: nand: sunxi: make use of sunxi_nfc_hw_ecc_read/write_chunk()

The sunxi_nfc_hw_ecc_read/write_chunk() functions have been created to
factorize the code in the normal and syndrome ECC implementation.
Make use of them where appropriate.

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