mtd: nand: ecc-bch: Stop exporting the private structure
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 29 Sep 2020 23:01:08 +0000 (01:01 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 30 Nov 2020 08:27:32 +0000 (09:27 +0100)
commit3c0fe36abebee55821badaa9d6cecd03799f7843
treeaf49ac5fef58f27190c57d8386ed205ea16a3f99
parent8c5c209218564a180e8b90fb12d29f72485c6c72
mtd: nand: ecc-bch: Stop exporting the private structure

The NAND BCH control structure has nothing to do outside of this
driver, all users of the nand_bch_init/free() functions just save it
to chip->ecc.priv so do it in this driver directly and return a
regular error code instead.

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