Skip to content

Commit

Permalink
mtd: spi-nor: core: Shrink the storage size of the flash_info's addr_…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Tudor Ambarus committed Jul 28, 2022
1 parent c452d49 commit aa5d980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/spi-nor/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit aa5d980

Please sign in to comment.