mtd: nand: ecc-bch: Drop mtd_nand_has_bch()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 29 Sep 2020 23:01:10 +0000 (01:01 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 30 Nov 2020 08:27:33 +0000 (09:27 +0100)
commit127aae6077562e3926ebad7c782123c2afe95846
tree383850c50f9be520365afb24ca917865fd720378
parente3010bd3ef1eda13f08155fe43846a64d0990a86
mtd: nand: ecc-bch: Drop mtd_nand_has_bch()

Like for any other compilation option, use the IS_ENABLED() macro
instead of hardcoding it.

By droping this helper we can get rid of the BCH header in nandsim.c.

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