]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit904ab88bdf1fcdd5ed06721275e91dca8c2ff454
treeee10321425d6b5b7e807bb02b6d46f5002b4357c
parent22c2768d46c91d6493dcc675b62f3395ea39db10
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