Message ID | 20200602143124.29553-4-miquel.raynal@bootlin.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Preparation to the generic ECC engine abstraction | expand |
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);
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@bootlin.com> --- include/linux/mtd/nand.h | 11 +++++++++++ 1 file changed, 11 insertions(+)