Skip to content

Commit

Permalink
mtd: spi-nor: guard _page_size parameter in S3AN_INFO()
Browse files Browse the repository at this point in the history
The _page_size marco parameter was missing parentheses around it. Add
them.

Signed-off-by: Michael Walle <[email protected]>
Signed-off-by: Tudor Ambarus <[email protected]>
Reviewed-by: Pratyush Yadav <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
mwalle authored and ambarus committed Feb 25, 2022
1 parent 66cf87c commit 9fb4beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/spi-nor/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit 9fb4beb

Please sign in to comment.