mtd: rawnand: Introduce nand_set_ecc_on_host_ops()
authorTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 17 Sep 2020 07:52:12 +0000 (10:52 +0300)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 30 Sep 2020 14:44:17 +0000 (16:44 +0200)
commit6e88127904b837a0ade47eb2994feaa2b5fae437
treee394ad172e572caca842c5652ab49936987da873
parentd27c9859a0c2f270972c26df6b2d2cc69c6d30f4
mtd: rawnand: Introduce nand_set_ecc_on_host_ops()

There were too many levels of indentation and the code was
hard to read. Introduce a new function, similar to
nand_set_ecc_soft_ops().

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200917075213.532161-3-tudor.ambarus@microchip.com
drivers/mtd/nand/raw/nand_base.c