Skip to contentSkip to conversation

Input: i8042-x86ia64io.h - Comment else/endif of CONFIG_PNP

PATCH Applied Marcos Paulo de Souza 2 participants 2 messages Dec 9, 2016 – Dec 10, 2016

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

PATCH 1/1 Input: i8042-x86ia64io.h - Comment else/endif of CONFIG_PNP

As this define check if huge, this makes easier to read the code.

---
While reviewing patches from Dmitry about presence of 8042, it makes it much easier to understand the ifdefs...

 drivers/input/serio/i8042-x86ia64io.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/input/serio/i8042-x86ia64io.h +2 -2
index 073246c..ddd3132 100644
@@ -1131,10 +1131,10 @@ static int __init i8042_pnp_init(void)
 	return 0;
 }
 
-#else
+#else  /* !CONFIG_PNP */
 static inline int i8042_pnp_init(void) { return 0; }
 static inline void i8042_pnp_exit(void) { }
-#endif
+#endif /* CONFIG_PNP */
 
 static int __init i8042_platform_init(void)
 {
Signature · 1 line
2.9.3
maintainer Applied
#1 lore raw
Quoted 3 lines · Marcos Paulo de Souza

As this define check if huge, this makes easier to read the code.

Applied, thank you.

Quoted 27 lines

---
While reviewing patches from Dmitry about presence of 8042, it makes it much easier to understand the ifdefs...

 drivers/input/serio/i8042-x86ia64io.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/input/serio/i8042-x86ia64io.h +2 -2
index 073246c..ddd3132 100644
@@ -1131,10 +1131,10 @@ static int __init i8042_pnp_init(void)
 	return 0;
 }
 
-#else
+#else  /* !CONFIG_PNP */
 static inline int i8042_pnp_init(void) { return 0; }
 static inline void i8042_pnp_exit(void) { }
-#endif
+#endif /* CONFIG_PNP */
 
 static int __init i8042_platform_init(void)
 {
Signature · 1 line
2.9.3
Signature · 1 line
Dmitry