diff options
author | Michael Trimarchi <michael@amarulasolutions.com> | 2022-07-20 18:22:07 +0200 |
---|---|---|
committer | Michael Trimarchi <michael@amarulasolutions.com> | 2022-07-22 10:34:02 +0200 |
commit | 9d1806fadc24811a5338f3fecb82ff5538114455 (patch) | |
tree | e83b3167e26484cf9843164e438ce36a3f5efc37 /include/linux | |
parent | b8cd2df5198c11360d514cd8529da992848d83b3 (diff) | |
download | u-boot-9d1806fadc24811a5338f3fecb82ff5538114455.tar.gz |
mtd: nand: Get rid of mtd variable in function calls
chip points to mtd. Passing chip is enough to have a reference
to mtd when is necessary
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mtd/rawnand.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h index 57fe7fb47b..d8141cb4d1 100644 --- a/include/linux/mtd/rawnand.h +++ b/include/linux/mtd/rawnand.h @@ -29,8 +29,7 @@ struct nand_flash_dev; struct device_node; /* Get the flash and manufacturer id and lookup if the type is supported. */ -struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd, - struct nand_chip *chip, +struct nand_flash_dev *nand_get_flash_type(struct nand_chip *chip, int *maf_id, int *dev_id, struct nand_flash_dev *type); |