diff options
author | 2023-09-08 12:16:32 +0200 | |
---|---|---|
committer | 2023-09-19 18:57:50 +0300 | |
commit | 83e62ffa7d1b7830bdeef59b993debb61366f83a (patch) | |
tree | 1b4f788060eb530c536b9671b1ac518f171dacdd /drivers/mtd/spi-nor/winbond.c | |
parent | mtd: spi-nor: move the .id and .id_len into an own structure (diff) | |
download | wireguard-linux-83e62ffa7d1b7830bdeef59b993debb61366f83a.tar.xz wireguard-linux-83e62ffa7d1b7830bdeef59b993debb61366f83a.zip |
mtd: spi-nor: rename .otp_org to .otp and make it a pointer
Move the OTP ops out of the flash_info structure. Besides of saving some
space, there will be a new macro SNOR_OTP() which can be used to set the
ops:
.otp = SNOR_OTP(...),
Signed-off-by: Michael Walle <mwalle@kernel.org>
Link: https://lore.kernel.org/r/20230807-mtd-flash-info-db-rework-v3-14-e60548861b10@kernel.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/mtd/spi-nor/winbond.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index 7873cc394f07..ecf52b9e3148 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -217,7 +217,7 @@ static int winbond_nor_late_init(struct spi_nor *nor) { struct spi_nor_flash_parameter *params = nor->params; - if (params->otp.org->n_regions) + if (params->otp.org) params->otp.ops = &winbond_nor_otp_ops; /* |