]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1c02252dc178abb605e7cf9ff55c6147f2d2458d
treeca66eb9e0027f3315adc33927832b53eca62c4ab
parent142e375c4742c1518123d1fbed4ee016f81fcd24
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