mtd: nand: Add a helper to retrieve the number of ECC steps
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 27 Jan 2021 20:30:15 +0000 (21:30 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 08:37:28 +0000 (09:37 +0100)
commite3554b10babd8ee1cf43bfc840ef4657eb1d12aa
tree9c306d55f482f20149526b65583553b1471f7629
parent12e0df0c6f60baf10f6ecb78a086bf1048ad9d8b
mtd: nand: Add a helper to retrieve the number of ECC steps

This operation is very common and deserves a helper. It of course only
works after the ECC engine initialization.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Adam Ford <aford173@gmail.com> #logicpd Torpedo
Link: https://lore.kernel.org/linux-mtd/20210127203020.9574-5-miquel.raynal@bootlin.com
include/linux/mtd/nand.h