Skip to content

Commit 74b7ad7

Browse files
mwalleambarus
authored andcommitted
mtd: spi-nor: xilinx: use SPI_NOR_ID() in S3AN_INFO()
In commit 5927318 ("mtd: spi-nor: Create macros to define chip IDs and geometries") SPI_NOR_ID() were introduced, but it did only update the INFO() macro in core.h. Also use it in S3AN_INFO(). Signed-off-by: Michael Walle <mwalle@kernel.org> Link: https://lore.kernel.org/r/20230807-mtd-flash-info-db-rework-v3-3-e60548861b10@kernel.org Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
1 parent d9cd5c9 commit 74b7ad7

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

drivers/mtd/spi-nor/xilinx.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@
2222
SPI_MEM_OP_DATA_IN(1, buf, 0))
2323

2424
#define S3AN_INFO(_jedec_id, _n_sectors, _page_size) \
25-
.id = { \
26-
((_jedec_id) >> 16) & 0xff, \
27-
((_jedec_id) >> 8) & 0xff, \
28-
(_jedec_id) & 0xff \
29-
}, \
30-
.id_len = 3, \
25+
SPI_NOR_ID(_jedec_id, 0), \
3126
.sector_size = (8 * (_page_size)), \
3227
.n_sectors = (_n_sectors), \
3328
.page_size = (_page_size), \

0 commit comments

Comments
 (0)