mtd: spinand: Move ECC related definitions earlier in the driver
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 30 Sep 2020 15:41:06 +0000 (17:41 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 10 Dec 2020 21:37:30 +0000 (22:37 +0100)
commit55a1a71a7f5d9a85dbe9d2ab4d67208f49cba522
treea69b66877c18a165e323b7b8ac59ea78985d88de
parent93afb10e226ec13619a48096ef095c2b1fec3f32
mtd: spinand: Move ECC related definitions earlier in the driver

Prepare the creation of a SPI-NAND on-die ECC engine by gathering the
ECC-related code earlier enough in the core to avoid the need for
forward declarations.

The next step is to actually create that engine by implementing the
generic ECC interface.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200930154109.3922-3-miquel.raynal@bootlin.com
drivers/mtd/nand/spi/core.c