projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c452d49
)
mtd: spi-nor: core: Shrink the storage size of the flash_info's addr_nbytes
author
Tudor Ambarus
<tudor.ambarus@microchip.com>
Mon, 25 Jul 2022 09:25:00 +0000
(12:25 +0300)
committer
Tudor Ambarus
<tudor.ambarus@microchip.com>
Thu, 28 Jul 2022 02:11:56 +0000
(
05:11
+0300)
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
drivers/mtd/spi-nor/core.h
patch
|
blob
|
history
diff --git
a/drivers/mtd/spi-nor/core.h
b/drivers/mtd/spi-nor/core.h
index
14921a5
..
19a692e
100644
(file)
--- 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;
- u
16
addr_nbytes;
+ u
8
addr_nbytes;
bool parse_sfdp;
u16 flags;