]> git.itanic.dy.fi Git - linux-stable/commit
mtd: spi-nor: rename .otp_org to .otp and make it a pointer
authorMichael Walle <mwalle@kernel.org>
Fri, 8 Sep 2023 10:16:32 +0000 (12:16 +0200)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Tue, 19 Sep 2023 15:57:50 +0000 (18:57 +0300)
commit83e62ffa7d1b7830bdeef59b993debb61366f83a
tree1b4f788060eb530c536b9671b1ac518f171dacdd
parent2d7f3a08875bc7045973fda487d6bf1ecb402e47
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>
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h
drivers/mtd/spi-nor/winbond.c