[PATCH v16 2/8] mtd: spi-nor: core: Shrink the storage size of the flash_info's addr_nbytes
tkuw584924 at gmail.com
tkuw584924 at gmail.com
Thu Jun 9 01:57:39 PDT 2022
From: Tudor Ambarus <tudor.ambarus at microchip.com>
The maximum number of address bytes in SPI NOR is 4. Shrink the storage
size of the flash_info's addr_nbytes.
Signed-off-by: Tudor Ambarus <tudor.ambarus at microchip.com>
Reviewed-by: Michael Walle <michael at walle.cc>
Reviewed-by: Pratyush Yadav <p.yadav at ti.com>
---
drivers/mtd/spi-nor/core.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h
index cd76296d0060..5eff3f636416 100644
--- a/drivers/mtd/spi-nor/core.h
+++ b/drivers/mtd/spi-nor/core.h
@@ -488,7 +488,7 @@ struct flash_info {
unsigned sector_size;
u16 n_sectors;
u16 page_size;
- u16 addr_nbytes;
+ u8 addr_nbytes;
bool parse_sfdp;
u16 flags;
--
2.25.1
More information about the linux-mtd
mailing list