mtd: spinand: winbond: Rename IO_MODE register macro
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 9 Jan 2026 17:18:17 +0000 (18:18 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 29 Jan 2026 19:21:41 +0000 (20:21 +0100)
Suffix the macro name with *_REG to align with the rest of the driver.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/spi/winbond.c

index 7eade22..b169636 100644 (file)
@@ -22,7 +22,7 @@
 #define W25N0XJW_SR4                   0xD0
 #define W25N0XJW_SR4_HS                        BIT(2)
 
-#define W35N01JW_VCR_IO_MODE                   0x00
+#define W35N01JW_VCR_IO_MODE_REG       0x00
 #define W35N01JW_VCR_IO_MODE_SINGLE_SDR                0xFF
 #define W35N01JW_VCR_IO_MODE_OCTAL_SDR         0xDF
 #define W35N01JW_VCR_IO_MODE_OCTAL_DDR_DS      0xE7
@@ -392,7 +392,7 @@ static int w35n0xjw_vcr_cfg(struct spinand_device *spinand)
        else
                return -EINVAL;
 
-       ret = w35n0xjw_write_vcr(spinand, W35N01JW_VCR_IO_MODE, io_mode);
+       ret = w35n0xjw_write_vcr(spinand, W35N01JW_VCR_IO_MODE_REG, io_mode);
        if (ret)
                return ret;