mtd: rawnand: arasan: Fix a macro parameter
authorMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 5 May 2021 21:37:48 +0000 (23:37 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 26 May 2021 08:52:47 +0000 (10:52 +0200)
This macro is not yet being used so the compilers never complained
about it.

Fix the macro before using it.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210505213750.257417-21-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/arasan-nand-controller.c

index 65a52bb2731e6b5e867dc1e9f46a05eaf26e2f83..d5fab3cbaa547f04c0b83aa89f3a00b9146fe4ef 100644 (file)
@@ -91,7 +91,7 @@
 
 #define DATA_INTERFACE_REG             0x6C
 #define   DIFACE_SDR_MODE(x)           FIELD_PREP(GENMASK(2, 0), (x))
-#define   DIFACE_DDR_MODE(x)           FIELD_PREP(GENMASK(5, 3), (X))
+#define   DIFACE_DDR_MODE(x)           FIELD_PREP(GENMASK(5, 3), (x))
 #define   DIFACE_SDR                   0
 #define   DIFACE_NVDDR                 BIT(9)