]> git.itanic.dy.fi Git - linux-stable/commit
mtd: spi-nor: move the .id and .id_len into an own structure
authorMichael Walle <mwalle@kernel.org>
Fri, 8 Sep 2023 10:16:31 +0000 (12:16 +0200)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Tue, 19 Sep 2023 15:57:50 +0000 (18:57 +0300)
commit2d7f3a08875bc7045973fda487d6bf1ecb402e47
treee9ede83c2e4b8780a0baf61e207ecd3d16574e44
parent95c6e3d26691d9144bfa3cdb95962bdb24d98905
mtd: spi-nor: move the .id and .id_len into an own structure

Create a new structure to hold a flash ID and its length. The goal is to
have a new macro SNOR_ID() which can have a flexible id length. This way
we can get rid of all the individual INFOx() macros.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Link: https://lore.kernel.org/r/20230807-mtd-flash-info-db-rework-v3-13-e60548861b10@kernel.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h
drivers/mtd/spi-nor/micron-st.c
drivers/mtd/spi-nor/spansion.c
drivers/mtd/spi-nor/sysfs.c