diff options
| author | Boris Brezillon <[email protected]> | 2018-09-06 12:05:33 +0000 |
|---|---|---|
| committer | Miquel Raynal <[email protected]> | 2018-10-03 09:12:25 +0000 |
| commit | 858838b87ef542c35b5401a6469d162d103d1d8f (patch) | |
| tree | 538e35245704e9c050bc619dbccc3dbf7671ddeb /drivers/mtd/nand/raw/atmel/nand-controller.c | |
| parent | mtd: rawnand: Pass a nand_chip object to chip->setup_read_retry() (diff) | |
| download | kernel-858838b87ef542c35b5401a6469d162d103d1d8f.tar.gz kernel-858838b87ef542c35b5401a6469d162d103d1d8f.zip | |
mtd: rawnand: Pass a nand_chip object to chip->setup_data_interface()
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 or
remove the mtd_info object when both are passed.
Let's tackle the chip->setup_data_interface() hook.
Signed-off-by: Boris Brezillon <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'drivers/mtd/nand/raw/atmel/nand-controller.c')
| -rw-r--r-- | drivers/mtd/nand/raw/atmel/nand-controller.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/nand/raw/atmel/nand-controller.c b/drivers/mtd/nand/raw/atmel/nand-controller.c index d5939114f999..a38633a67ead 100644 --- a/drivers/mtd/nand/raw/atmel/nand-controller.c +++ b/drivers/mtd/nand/raw/atmel/nand-controller.c @@ -1448,10 +1448,9 @@ static int atmel_hsmc_nand_setup_data_interface(struct atmel_nand *nand, return 0; } -static int atmel_nand_setup_data_interface(struct mtd_info *mtd, int csline, +static int atmel_nand_setup_data_interface(struct nand_chip *chip, int csline, const struct nand_data_interface *conf) { - struct nand_chip *chip = mtd_to_nand(mtd); struct atmel_nand *nand = to_atmel_nand(chip); struct atmel_nand_controller *nc; |
