projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66cf87c
)
mtd: spi-nor: guard _page_size parameter in S3AN_INFO()
author
Michael Walle
<michael@walle.cc>
Wed, 23 Feb 2022 13:43:46 +0000
(14:43 +0100)
committer
Tudor Ambarus
<tudor.ambarus@microchip.com>
Fri, 25 Feb 2022 16:11:54 +0000
(18:11 +0200)
The _page_size marco parameter was missing parentheses around it. Add
them.
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link:
https://lore.kernel.org/r/20220223134358.1914798-21-michael@walle.cc
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
446218b
..
3c37b46
100644
(file)
--- a/
drivers/mtd/spi-nor/core.h
+++ b/
drivers/mtd/spi-nor/core.h
@@
-469,9
+469,9
@@
struct flash_info {
(_jedec_id) & 0xff \
}, \
.id_len = 3, \
- .sector_size = (8
*_page_size),
\
+ .sector_size = (8
* (_page_size)),
\
.n_sectors = (_n_sectors), \
- .page_size =
_page_size,
\
+ .page_size =
(_page_size),
\
.addr_width = 3, \
.flags = SPI_NOR_NO_FR | SPI_NOR_XSR_RDY,