Skip to contentSkip to conversation

mtd: rawnand: intel: Remove macro that is already defined in the core

PATCH In review Tudor Ambarus 2 participants 2 messages Aug 1, 2022 – Sep 20, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: rawnand: intel: Remove macro that is already defined in the core

NAND_DATA_IFACE_CHECK_ONLY is already defined in include/linux/mtd/rawnand.h. The intel driver includes <linux/mtd/rawnand.h>, so remove the duplicate definition from the intel driver.

---
 drivers/mtd/nand/raw/intel-nand-controller.c | 2 --
 1 file changed, 2 deletions(-)
drivers/mtd/nand/raw/intel-nand-controller.c +0 -2
index 7c1c80dae826..fbf6731420d6 100644
@@ -99,8 +99,6 @@
 
 #define HSNAND_ECC_OFFSET	0x008
 
-#define NAND_DATA_IFACE_CHECK_ONLY	-1
-
 #define MAX_CS	2
 
 #define USEC_PER_SEC	1000000L
Signature · 1 line
2.25.1
maintainer
#1 lore raw

Hi Tudor,

[email protected] wrote on Mon, 1 Aug 2022 05:57:40 +0300:

Quoted 15 lines

NAND_DATA_IFACE_CHECK_ONLY is already defined in include/linux/mtd/rawnand.h. The intel driver includes <linux/mtd/rawnand.h>, so remove the duplicate definition from the intel driver.

---
 drivers/mtd/nand/raw/intel-nand-controller.c | 2 --
 1 file changed, 2 deletions(-)
drivers/mtd/nand/raw/intel-nand-controller.c +0 -0
index 7c1c80dae826..fbf6731420d6 100644

drivers/mtd/nand/raw/intel-nand-controller.c line 104

Quoted 8 lines
drivers/mtd/nand/raw/intel-nand-controller.c +0 -2
@@ -99,8 +99,6 @@
 
 #define HSNAND_ECC_OFFSET	0x008
 
-#define NAND_DATA_IFACE_CHECK_ONLY	-1
-
 #define MAX_CS	2
 
 #define USEC_PER_SEC	1000000L

Actually I already received a series which contains a patch doing exactly that. But thanks anyway :-)

Cheers,
Miquèl

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/