Skip to content

Commit 140bb9e

Browse files
committed
mtd: spinand: winbond: Rename DTR variants
So far all the chips supported in the driver apparently have support for the same kind of operation (typically, single, dual and quad). The future introduction of W35N chips will change that as these chips only support single and octal modes. Let's rename the variants accordingly to make these future additions more understandable. Acked-by: Tudor Ambarus <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 51b252c commit 140bb9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mtd/nand/spi/winbond.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* "X4" in the core is equivalent to "quad output" in the datasheets.
2424
*/
2525

26-
static SPINAND_OP_VARIANTS(read_cache_dtr_variants,
26+
static SPINAND_OP_VARIANTS(read_cache_dual_quad_dtr_variants,
2727
SPINAND_PAGE_READ_FROM_CACHE_1S_4D_4D_OP(0, 8, NULL, 0, 80 * HZ_PER_MHZ),
2828
SPINAND_PAGE_READ_FROM_CACHE_1S_1D_4D_OP(0, 2, NULL, 0, 80 * HZ_PER_MHZ),
2929
SPINAND_PAGE_READ_FROM_CACHE_1S_4S_4S_OP(0, 2, NULL, 0),
@@ -213,7 +213,7 @@ static const struct spinand_info winbond_spinand_table[] = {
213213
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xbc, 0x21),
214214
NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 1, 1),
215215
NAND_ECCREQ(1, 512),
216-
SPINAND_INFO_OP_VARIANTS(&read_cache_dtr_variants,
216+
SPINAND_INFO_OP_VARIANTS(&read_cache_dual_quad_dtr_variants,
217217
&write_cache_variants,
218218
&update_cache_variants),
219219
0,
@@ -242,7 +242,7 @@ static const struct spinand_info winbond_spinand_table[] = {
242242
SPINAND_ID(SPINAND_READID_METHOD_OPCODE_DUMMY, 0xbf, 0x22),
243243
NAND_MEMORG(1, 2048, 64, 64, 1024, 20, 1, 2, 1),
244244
NAND_ECCREQ(1, 512),
245-
SPINAND_INFO_OP_VARIANTS(&read_cache_dtr_variants,
245+
SPINAND_INFO_OP_VARIANTS(&read_cache_dual_quad_dtr_variants,
246246
&write_cache_variants,
247247
&update_cache_variants),
248248
0,

0 commit comments

Comments
 (0)