diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-09-06 14:05:19 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-10-03 11:12:25 +0200 |
commit | 00da2ea97229946450c8145d680db480b5da1f94 (patch) | |
tree | 185839a4fbbf4bb8c377c309958b7607ae7fe29c /include/linux/mtd/nand_ecc.h | |
parent | af37d2c3a8c7a05cf5b0fe6b61e2a6b9e357928b (diff) | |
download | linux-00da2ea97229946450c8145d680db480b5da1f94.tar.gz linux-00da2ea97229946450c8145d680db480b5da1f94.tar.bz2 linux-00da2ea97229946450c8145d680db480b5da1f94.zip |
mtd: rawnand: Pass a nand_chip object to ecc->correct()
Let's make the raw NAND API consistent by patching all helpers and
hooks to take a nand_chip object instead of an mtd_info one.
Now is ecc->correct()'s turn.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'include/linux/mtd/nand_ecc.h')
-rw-r--r-- | include/linux/mtd/nand_ecc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mtd/nand_ecc.h b/include/linux/mtd/nand_ecc.h index a514e62ff54f..b81fecd5e719 100644 --- a/include/linux/mtd/nand_ecc.h +++ b/include/linux/mtd/nand_ecc.h @@ -13,7 +13,6 @@ #ifndef __MTD_NAND_ECC_H__ #define __MTD_NAND_ECC_H__ -struct mtd_info; struct nand_chip; /* @@ -37,6 +36,7 @@ int __nand_correct_data(u_char *dat, u_char *read_ecc, u_char *calc_ecc, /* * Detect and correct a 1 bit error for 256/512 byte block */ -int nand_correct_data(struct mtd_info *mtd, u_char *dat, u_char *read_ecc, u_char *calc_ecc); +int nand_correct_data(struct nand_chip *chip, u_char *dat, u_char *read_ecc, + u_char *calc_ecc); #endif /* __MTD_NAND_ECC_H__ */ |