Skip to content

Commit aa5d980

Browse files
committed
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
1 parent c452d49 commit aa5d980

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mtd/spi-nor/core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ struct flash_info {
487487
unsigned sector_size;
488488
u16 n_sectors;
489489
u16 page_size;
490-
u16 addr_nbytes;
490+
u8 addr_nbytes;
491491

492492
bool parse_sfdp;
493493
u16 flags;

0 commit comments

Comments
 (0)