[PATCH v6 13/28] mtd: nand: Add a new helper to retrieve the ECC context

Miquel Raynal miquel.raynal at bootlin.com
Fri Dec 17 07:53:12 PST 2021


On Thu, 2021-12-16 at 11:16:39 UTC, Miquel Raynal wrote:
> Introduce nand_to_ecc_ctx() which will allow to easily jump to the
> private pointer of an ECC context given a NAND device. This is very
> handy, from the prepare or finish ECC hook, to get the internal context
> out of the NAND device object.
> 
> Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git spi-mem-ecc.

Miquel



More information about the linux-mtd mailing list