summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2022-02-23 14:43:46 +0100
committerTudor Ambarus <tudor.ambarus@microchip.com>2022-02-25 17:11:54 +0100
commit9fb4beb1b0510398c8202c6db04f29b3f22d53a7 (patch)
tree864c55bb2269d39131db1a4a19253f474c223387
parentmtd: spi-nor: export more functions to be used in vendor modules (diff)
downloadlinux-9fb4beb1b0510398c8202c6db04f29b3f22d53a7.tar.xz
linux-9fb4beb1b0510398c8202c6db04f29b3f22d53a7.zip
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
-rw-r--r--drivers/mtd/spi-nor/core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h
index 446218b0e017..3c37b46d60d5 100644
--- 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,