mtd: spi-nor: Get rid of duplicated argument in spi_nor_parse_sfdp()
authorTudor Ambarus <tudor.ambarus@microchip.com>
Sat, 6 Mar 2021 09:50:00 +0000 (11:50 +0200)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 15 Mar 2021 16:01:47 +0000 (18:01 +0200)
commita580293a19fc49b2745019075f9fa8561a6a0b32
treebcbe5ee14ab94d1d1271dbaa6b207f9f423ad399
parent8758888c3d7873004b4ebf516430cba70bbcf39a
mtd: spi-nor: Get rid of duplicated argument in spi_nor_parse_sfdp()

spi_nor_parse_sfdp(nor, nor->params);
passes for the second argument a member within the first argument.
Drop the second argument and obtain it directly from the first,
and do it across all the children functions. This is a follow up for
'commit 69a8eed58cc0 ("mtd: spi-nor: Don't copy self-pointing struct around")'

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20210306095002.22983-4-tudor.ambarus@microchip.com
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h
drivers/mtd/spi-nor/issi.c
drivers/mtd/spi-nor/macronix.c
drivers/mtd/spi-nor/sfdp.c
drivers/mtd/spi-nor/sfdp.h
drivers/mtd/spi-nor/spansion.c
drivers/mtd/spi-nor/winbond.c