[PATCH 04/13] mtd: spinand: winbond: Rename the ->set_cont_read() helper

From: Miquel Raynal

Date: Fri Oct 30 2026 - 13:50:29 EST


All W25N chips (KV, JV, LV, KW, JW, LW) seem to share the same helper.
W35N chips have one more item to configure in their callback, but
otherwise are also very close.

Rename the helper to clarify its use.

Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
---
drivers/mtd/nand/spi/winbond.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/nand/spi/winbond.c b/drivers/mtd/nand/spi/winbond.c
index e3be93690bb7..c6f7f0a42722 100644
--- a/drivers/mtd/nand/spi/winbond.c
+++ b/drivers/mtd/nand/spi/winbond.c
@@ -582,7 +582,7 @@ static int w25n0xjw_hs_cfg(struct spinand_device *spinand,
return w25n0xjw_set_sr4_hs(spinand, w25n0xjw_op_needs_hs(op));
}

-static int w25n0xjw_set_cont_read(struct spinand_device *spinand, bool enable)
+static int w25n_set_cont_read(struct spinand_device *spinand, bool enable)
{
u8 mask = enable ? 0 : WINBOND_CFG_BUF_READ;

@@ -726,7 +726,7 @@ static const struct spinand_info winbond_spinand_table[] = {
SPINAND_HAS_QE_BIT,
SPINAND_ECCINFO(&w25n01jw_ooblayout, w25w35nxxjw_ecc_get_status),
SPINAND_CONFIGURE_CHIP(w25n0xjw_hs_cfg),
- SPINAND_CONT_READ(w25n0xjw_set_cont_read)),
+ SPINAND_CONT_READ(w25n_set_cont_read)),
SPINAND_INFO("W25N01KV", /* 3.3V */
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xae, 0x21),
NAND_MEMORG(1, 2048, 96, 64, 1024, 20, 1, 1, 1),
@@ -772,7 +772,7 @@ static const struct spinand_info winbond_spinand_table[] = {
SPINAND_HAS_QE_BIT,
SPINAND_ECCINFO(&w25m02gv_ooblayout, w25w35nxxjw_ecc_get_status),
SPINAND_CONFIGURE_CHIP(w25n0xjw_hs_cfg),
- SPINAND_CONT_READ(w25n0xjw_set_cont_read)),
+ SPINAND_CONT_READ(w25n_set_cont_read)),
SPINAND_INFO("W25N02KV", /* 3.3V */
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xaa, 0x22),
NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1),
@@ -856,7 +856,7 @@ static const struct spinand_info winbond_spinand_table[] = {
&cont_read_cache_variants),
0,
SPINAND_ECCINFO(&w25nxxlv_lw_ooblayout, w25n02kv_ecc_get_status),
- SPINAND_CONT_READ(w25n0xjw_set_cont_read)),
+ SPINAND_CONT_READ(w25n_set_cont_read)),
};

static int winbond_spinand_init(struct spinand_device *spinand)

--
2.56.0