mtd: nand: ecc-bch: Update the prototypes to be more generic
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 29 Sep 2020 23:01:11 +0000 (01:01 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 30 Nov 2020 08:27:33 +0000 (09:27 +0100)
commitea146d7fbf5081b5eb2777df5e30ed70ca68985b
treef94de924cbac1c20b39515d6336be718d90056eb
parent127aae6077562e3926ebad7c782123c2afe95846
mtd: nand: ecc-bch: Update the prototypes to be more generic

These functions must be usable by the main NAND core, so their names
must be technology-agnostic as well as the parameters. Hence, we pass
a generic nand_device instead of a raw nand_chip structure.

As it seems that changing the raw NAND functions to always pass a
generic NAND device is a lost of time, we prefer to create dedicated
raw NAND wrappers that will be useful in the near future to do the
translation.

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