mtd: rawnand: omap: Use ECC information from the generic structures
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 27 Jan 2021 20:30:18 +0000 (21:30 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 08:37:28 +0000 (09:37 +0100)
commit49894937fc11662491a675a03f3f3c5b308763d4
tree953817441b3d63725f08caf6a70c5eccf35c1a70
parent5b9215acb5182355a8a3c9f0a930e6b51c6eea57
mtd: rawnand: omap: Use ECC information from the generic structures

As part of a previous fix, we imported the BCH internal structure in
order to get information about the BCH engine configuration.

It is best not to access private structure so instead, a small rework
has been done to export more information from the ECC engines. Now,
let's use these.

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-8-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/omap2.c