mtd: nand: sunxi: move some ECC related operations to their own functions
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 4 Mar 2016 16:56:47 +0000 (17:56 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 19 Apr 2016 20:05:46 +0000 (22:05 +0200)
commitcc6822fb756b5080ca127fef1a89f35558bd2610
tree988902ffa02e54374e98f6ffd06fa4e5d5470c62
parentc0c9dfa8adf09dbbb7dc32c20d9ccb33e19250c0
mtd: nand: sunxi: move some ECC related operations to their own functions

In order to support DMA operations in a clean way we need to extract some
of the logic coded in sunxi_nfc_hw_ecc_read/write_page() into their own
function.

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