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

The software Hamming 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-10-miquel.raynal@bootlin.com
drivers/mtd/nand/ecc-sw-hamming.c
include/linux/mtd/nand-ecc-sw-hamming.h