[PATCH 0/2] mtd: spi-nor: manufacturers: Replace hardcoded values for addr_nbytes/addr_mode_nbytes

Tudor Ambarus tudor.ambarus at microchip.com
Wed Jul 27 21:14:49 PDT 2022


We track in the core the internal address mode of the flash. Stop using
hardcoded values for the number of bytes of address and use
nor->addr_nbytes and nor->params->addr_mode_nbytes instead.

I don't have those flashes to test the changes, so I'll need some
Tested-by tags.

Tudor Ambarus (2):
  mtd: spi-nor: spansion: Replace hardcoded values for
    addr_nbytes/addr_mode_nbytes
  mtd: spi-nor: micron-st.c: Replace hardcoded values for
    addr_nbytes/addr_mode_nbytes

 drivers/mtd/spi-nor/micron-st.c | 10 +++++++---
 drivers/mtd/spi-nor/spansion.c  | 16 +++++++++++-----
 2 files changed, 18 insertions(+), 8 deletions(-)

-- 
2.25.1




More information about the linux-mtd mailing list