mtd: nand: ecc-bch: Stop using raw NAND structures
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 29 Sep 2020 23:01:12 +0000 (01:01 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 30 Nov 2020 08:27:33 +0000 (09:27 +0100)
commit80fe603160a4732a08f0f08f3e3312a3f3a79eee
tree902b7fe685b9b47224d3983dcb06949b8449b6ba
parentea146d7fbf5081b5eb2777df5e30ed70ca68985b
mtd: nand: ecc-bch: Stop using raw NAND structures

This code is meant to be reused by the SPI-NAND core. Now that the
driver has been cleaned and reorganized, use a generic ECC engine
object to store the driver's data instead of accessing members of the
nand_chip structure.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200929230124.31491-9-miquel.raynal@bootlin.com
drivers/mtd/nand/ecc-sw-bch.c
drivers/mtd/nand/raw/nand_base.c
include/linux/mtd/nand-ecc-sw-bch.h