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 <[email protected]> Reviewed-by: Michael Walle <[email protected]> Reviewed-by: Pratyush Yadav <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c452d49 commit aa5d980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)