[PATCH 2/3] mtd: spi-nor: fujitsu: Convert to new flash_info format
Ronan Dalton
ronan.dalton at alliedtelesis.co.nz
Wed Jun 24 00:21:05 PDT 2026
The previous patch reverted a commit, and in doing so added a flash_info
table which still used the old format. flash_info tables are defined
differently now, so the code requires an amendment.
Fix up the fujitsu_nor_parts array to use the correct format. Also
remove the unnecessary "Fujitsu" comment and specify sector_size for
consistency with other flash_info tables.
Signed-off-by: Ronan Dalton <ronan.dalton at alliedtelesis.co.nz>
Cc: linux-kernel at vger.kernel.org
Cc: linux-mtd at lists.infradead.org
Cc: Pratyush Yadav <pratyush at kernel.org>
Cc: Michael Walle <mwalle at kernel.org>
Cc: Takahiro Kuwano <takahiro.kuwano at infineon.com>
Cc: Miquel Raynal <miquel.raynal at bootlin.com>
Cc: Richard Weinberger <richard at nod.at>
Cc: Vignesh Raghavendra <vigneshr at ti.com>
Cc: Chris Packham <chris.packham at alliedtelesis.co.nz>
Cc: Aryan Srivastava <aryan.srivastava at alliedtelesis.co.nz>
---
drivers/mtd/spi-nor/fujitsu.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/spi-nor/fujitsu.c b/drivers/mtd/spi-nor/fujitsu.c
index 69cffc5c73ef..3777c80251c5 100644
--- a/drivers/mtd/spi-nor/fujitsu.c
+++ b/drivers/mtd/spi-nor/fujitsu.c
@@ -9,9 +9,13 @@
#include "core.h"
static const struct flash_info fujitsu_nor_parts[] = {
- /* Fujitsu */
- { "mb85rs1mt", INFO(0x047f27, 0, 128 * 1024, 1)
- FLAGS(SPI_NOR_NO_ERASE) },
+ {
+ .id = SNOR_ID(0x04, 0x7f, 0x27),
+ .name = "mb85rs1mt",
+ .size = SZ_128K,
+ .sector_size = SZ_128K,
+ .flags = SPI_NOR_NO_ERASE,
+ }
};
const struct spi_nor_manufacturer spi_nor_fujitsu = {
--
2.54.0
More information about the linux-mtd
mailing list