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 /drivers/mtd/nand/raw/ndfc.c | |
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 'drivers/mtd/nand/raw/ndfc.c')
-rw-r--r-- | drivers/mtd/nand/raw/ndfc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/nand/raw/ndfc.c b/drivers/mtd/nand/raw/ndfc.c index ab24e9ca769b..f9648d87b2e7 100644 --- a/drivers/mtd/nand/raw/ndfc.c +++ b/drivers/mtd/nand/raw/ndfc.c @@ -81,10 +81,9 @@ static int ndfc_ready(struct mtd_info *mtd) return in_be32(ndfc->ndfcbase + NDFC_STAT) & NDFC_STAT_IS_READY; } -static void ndfc_enable_hwecc(struct mtd_info *mtd, int mode) +static void ndfc_enable_hwecc(struct nand_chip *chip, int mode) { uint32_t ccr; - struct nand_chip *chip = mtd_to_nand(mtd); struct ndfc_controller *ndfc = nand_get_controller_data(chip); ccr = in_be32(ndfc->ndfcbase + NDFC_CCR); |