Skip to content

Commit a5d27ef

Browse files
miquelraynalgregkh
authored andcommitted
mtd: spinand: winbond: Rename IO_MODE register macro
[ Upstream commit 57e1015 ] Suffix the macro name with *_REG to align with the rest of the driver. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Stable-dep-of: 25a915f ("mtd: spinand: winbond: Clarify when to enable the HS bit") Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 7298335 commit a5d27ef

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
@@ -368,7 +368,7 @@ static int w35n0xjw_vcr_cfg(struct spinand_device *spinand)
368368
else
369369
return -EINVAL;
370370

371-
ret = w35n0xjw_write_vcr(spinand, W35N01JW_VCR_IO_MODE, io_mode);
371+
ret = w35n0xjw_write_vcr(spinand, W35N01JW_VCR_IO_MODE_REG, io_mode);
372372
if (ret)
373373
return ret;
374374

0 commit comments

Comments
 (0)