diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-09-06 14:05:17 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-10-03 11:12:25 +0200 |
commit | ec47636cd7e7b0dd53e526ec832ebb21b67ad9c6 (patch) | |
tree | 1f59ba2d34c00f1320432f9ffb83aa9d712b42c4 /include | |
parent | mtd: rawnand: Pass a nand_chip object to nand_wait_ready() (diff) | |
download | linux-ec47636cd7e7b0dd53e526ec832ebb21b67ad9c6.tar.xz linux-ec47636cd7e7b0dd53e526ec832ebb21b67ad9c6.zip |
mtd: rawnand: Pass a nand_chip object to ecc->hwctl()
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->hwctl()'s turn.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mtd/rawnand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h index 55014e42912a..029fef900f33 100644 --- a/include/linux/mtd/rawnand.h +++ b/include/linux/mtd/rawnand.h @@ -647,7 +647,7 @@ struct nand_ecc_ctrl { void *priv; u8 *calc_buf; u8 *code_buf; - void (*hwctl)(struct mtd_info *mtd, int mode); + void (*hwctl)(struct nand_chip *chip, int mode); int (*calculate)(struct mtd_info *mtd, const uint8_t *dat, uint8_t *ecc_code); int (*correct)(struct mtd_info *mtd, uint8_t *dat, uint8_t *read_ecc, |