As the structures are still mixed, this helper returns the same as nanddev_get_ecc_conf() but this will be fixed in a later change. Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> --- include/linux/mtd/nand.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 7fd0d492073b..e572d1600f63 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -522,6 +522,17 @@ nanddev_get_ecc_conf(struct nand_device *nand) return &nand->eccreq; } +/** + * nanddev_get_ecc_requirements() - Extract the ECC requirements from a NAND + * device + * @nand: NAND device + */ +const struct nand_ecc_props * +nanddev_get_ecc_requirements(struct nand_device *nand) +{ + return &nand->eccreq; +} + int nanddev_init(struct nand_device *nand, const struct nand_ops *ops, struct module *owner); void nanddev_cleanup(struct nand_device *nand); -- 2.20.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/