diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2020-08-27 10:51:50 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2020-08-27 10:55:58 +0200 |
commit | e0a564ae0a4bc1bcf156d468955b27d3606e8253 (patch) | |
tree | 0d601665a5239e870b935956b9659133980390f7 /drivers/mtd/nand/raw/gpio.c | |
parent | mtd: rawnand: Add a kernel doc to the ECC algorithm enumeration (diff) | |
download | linux-e0a564ae0a4bc1bcf156d468955b27d3606e8253.tar.xz linux-e0a564ae0a4bc1bcf156d468955b27d3606e8253.zip |
mtd: rawnand: Rename the ECC algorithm enumeration items
NAND_ECC_ is not a meaningful prefix, use NAND_ECC_ALGO_ instead.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20200827085208.16276-3-miquel.raynal@bootlin.com
Diffstat (limited to 'drivers/mtd/nand/raw/gpio.c')
-rw-r--r-- | drivers/mtd/nand/raw/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/gpio.c b/drivers/mtd/nand/raw/gpio.c index 3bd847ccc3f3..c8f498eaabeb 100644 --- a/drivers/mtd/nand/raw/gpio.c +++ b/drivers/mtd/nand/raw/gpio.c @@ -343,7 +343,7 @@ static int gpio_nand_probe(struct platform_device *pdev) nand_set_flash_node(chip, pdev->dev.of_node); chip->ecc.mode = NAND_ECC_SOFT; - chip->ecc.algo = NAND_ECC_HAMMING; + chip->ecc.algo = NAND_ECC_ALGO_HAMMING; chip->options = gpiomtd->plat.options; chip->controller = &gpiomtd->base; |