summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi-nor/issi.c
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2021-03-06 12:50:00 +0300
committerTudor Ambarus <tudor.ambarus@microchip.com>2021-03-15 19:01:47 +0300
commita580293a19fc49b2745019075f9fa8561a6a0b32 (patch)
treebcbe5ee14ab94d1d1271dbaa6b207f9f423ad399 /drivers/mtd/spi-nor/issi.c
parent8758888c3d7873004b4ebf516430cba70bbcf39a (diff)
downloadlinux-a580293a19fc49b2745019075f9fa8561a6a0b32.tar.xz
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
Diffstat (limited to 'drivers/mtd/spi-nor/issi.c')
-rw-r--r--drivers/mtd/spi-nor/issi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/spi-nor/issi.c b/drivers/mtd/spi-nor/issi.c
index ffcb60e54a80..1e5bb5408b68 100644
--- a/drivers/mtd/spi-nor/issi.c
+++ b/drivers/mtd/spi-nor/issi.c
@@ -11,8 +11,7 @@
static int
is25lp256_post_bfpt_fixups(struct spi_nor *nor,
const struct sfdp_parameter_header *bfpt_header,
- const struct sfdp_bfpt *bfpt,
- struct spi_nor_flash_parameter *params)
+ const struct sfdp_bfpt *bfpt)
{
/*
* IS25LP256 supports 4B opcodes, but the BFPT advertises a