Skip to content

Commit 57e1015

Browse files
committed
mtd: spinand: winbond: Rename IO_MODE register macro
Suffix the macro name with *_REG to align with the rest of the driver. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 1d98c6a commit 57e1015

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/mtd/nand/spi/winbond.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define W25N0XJW_SR4 0xD0
2323
#define W25N0XJW_SR4_HS BIT(2)
2424

25-
#define W35N01JW_VCR_IO_MODE 0x00
25+
#define W35N01JW_VCR_IO_MODE_REG 0x00
2626
#define W35N01JW_VCR_IO_MODE_SINGLE_SDR 0xFF
2727
#define W35N01JW_VCR_IO_MODE_OCTAL_SDR 0xDF
2828
#define W35N01JW_VCR_IO_MODE_OCTAL_DDR_DS 0xE7
@@ -392,7 +392,7 @@ static int w35n0xjw_vcr_cfg(struct spinand_device *spinand)
392392
else
393393
return -EINVAL;
394394

395-
ret = w35n0xjw_write_vcr(spinand, W35N01JW_VCR_IO_MODE, io_mode);
395+
ret = w35n0xjw_write_vcr(spinand, W35N01JW_VCR_IO_MODE_REG, io_mode);
396396
if (ret)
397397
return ret;
398398

0 commit comments

Comments
 (0)