mtd: nand: Add a helper to retrieve the number of ECC bytes per step
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 27 Jan 2021 20:30:16 +0000 (21:30 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 08:37:28 +0000 (09:37 +0100)
commitba4a40a483da86d76bd69957c21fcb975b8405ae
treeca66eb9e0027f3315adc33927832b53eca62c4ab
parente3554b10babd8ee1cf43bfc840ef4657eb1d12aa
mtd: nand: Add a helper to retrieve the number of ECC bytes per step

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-6-miquel.raynal@bootlin.com
include/linux/mtd/nand.h