[PATCH v2 2/3] mtd: spi-nor: fujitsu: Convert to new flash_info format

From: Ronan Dalton

Date: Thu Jun 25 2026 - 22:22:34 EST


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@xxxxxxxxxxxxxxxxxxx>
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: linux-mtd@xxxxxxxxxxxxxxxxxxx
Cc: Pratyush Yadav <pratyush@xxxxxxxxxx>
Cc: Michael Walle <mwalle@xxxxxxxxxx>
Cc: Takahiro Kuwano <takahiro.kuwano@xxxxxxxxxxxx>
Cc: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
Cc: Richard Weinberger <richard@xxxxxx>
Cc: Vignesh Raghavendra <vigneshr@xxxxxx>
Cc: Chris Packham <chris.packham@xxxxxxxxxxxxxxxxxxx>
Cc: Aryan Srivastava <aryan.srivastava@xxxxxxxxxxxxxxxxxxx>
---
Changes in v2:
- No changes

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