mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
mtd: spi-nor: guard _page_size parameter in S3AN_INFO()
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
This commit is contained in:
parent
66cf87c600
commit
9fb4beb1b0
1 changed files with 2 additions and 2 deletions
|
@ -469,9 +469,9 @@ struct flash_info {
|
||||||
(_jedec_id) & 0xff \
|
(_jedec_id) & 0xff \
|
||||||
}, \
|
}, \
|
||||||
.id_len = 3, \
|
.id_len = 3, \
|
||||||
.sector_size = (8*_page_size), \
|
.sector_size = (8 * (_page_size)), \
|
||||||
.n_sectors = (_n_sectors), \
|
.n_sectors = (_n_sectors), \
|
||||||
.page_size = _page_size, \
|
.page_size = (_page_size), \
|
||||||
.addr_width = 3, \
|
.addr_width = 3, \
|
||||||
.flags = SPI_NOR_NO_FR | SPI_NOR_XSR_RDY,
|
.flags = SPI_NOR_NO_FR | SPI_NOR_XSR_RDY,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue