mtd: spinand: Use nanddev_get_ecc_conf() when relevant
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 27 Aug 2020 08:52:00 +0000 (10:52 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 28 Sep 2020 13:59:48 +0000 (15:59 +0200)
commit9a333a72c1d0539be664bf121a68c31e48e10d54
tree87532f519be8e1d907d257d4c703d64ada58a471
parentd193792a26c216cb7db3cf12300c9414990fa603
mtd: spinand: Use nanddev_get_ecc_conf() when relevant

Instead of accessing ->strength/step_size directly.

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