mtd: nand: ecc-bch: Use the public nsteps field
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 27 Jan 2021 20:30:19 +0000 (21:30 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 08:37:28 +0000 (09:37 +0100)
commit3e66843c74289b294b91547edd364c5a6fdef45b
tree24872ec32ac3853ce0568223bc913da4cc0ac6a9
parent49894937fc11662491a675a03f3f3c5b308763d4
mtd: nand: ecc-bch: Use the public nsteps field

The software BCH ECC engine stores the nsteps variable in its own
private structure while it is also exported as a public ECC field.

Let's get rid of the redundant private one and let's use the
nand_ecc_context structure when possible.

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-9-miquel.raynal@bootlin.com
drivers/mtd/nand/ecc-sw-bch.c
include/linux/mtd/nand-ecc-sw-bch.h