mtd: nand: ecc-hamming: Stop using raw NAND structures
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 29 Sep 2020 23:01:20 +0000 (01:01 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 10 Dec 2020 21:37:29 +0000 (22:37 +0100)
commit19b2ce184b9f404d6620adf667a9019e6abcae51
tree35baebb133becb03c9354b13e4717f6f59094686
parent90ccf0a0192f7fa06e52de80cb528c5217e3e297
mtd: nand: ecc-hamming: 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. This means adding proper init/cleanup helpers.

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