summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2022-07-25 11:25:00 +0200
committerTudor Ambarus <tudor.ambarus@microchip.com>2022-07-28 04:11:56 +0200
commitaa5d980a144cd0bf717eb16609c29ff276f8bd47 (patch)
tree74d786d2068712974d2e3d633045f6c908fa7e9e /drivers/mtd
parentmtd: spi-nor: s/addr_width/addr_nbytes (diff)
downloadlinux-aa5d980a144cd0bf717eb16609c29ff276f8bd47.tar.xz
linux-aa5d980a144cd0bf717eb16609c29ff276f8bd47.zip
mtd: spi-nor: core: Shrink the storage size of the flash_info's addr_nbytes
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@microchip.com> Reviewed-by: Michael Walle <michael@walle.cc> Reviewed-by: Pratyush Yadav <p.yadav@ti.com> Link: https://lore.kernel.org/r/20220725092505.446315-3-tudor.ambarus@microchip.com
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/spi-nor/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h
index 14921a507b0f..19a692e27c92 100644
--- a/drivers/mtd/spi-nor/core.h
+++ b/drivers/mtd/spi-nor/core.h
@@ -487,7 +487,7 @@ struct flash_info {
unsigned sector_size;
u16 n_sectors;
u16 page_size;
- u16 addr_nbytes;
+ u8 addr_nbytes;
bool parse_sfdp;
u16 flags;