[PATCH 10/10] Kconfig: cleanup SERIO_I8042 dependencies

Mark Salter msalter at redhat.com
Sun Dec 15 03:59:36 EST 2013


Remove messy dependencies from SERIO_I8042 by having it depend on one
Kconfig symbol (ARCH_MIGHT_HAVE_PC_SERIO) and having architectures
which need it select ARCH_MIGHT_HAVE_PC_SERIO in arch/*/Kconfig.
New architectures are unlikely to need SERIO_I8042, so this avoids
having an ever growing list of architectures to exclude.

Signed-off-by: Mark Salter <msalter at redhat.com>
CC: Dmitry Torokhov <dmitry.torokhov at gmail.com>
CC: Richard Henderson <rth at twiddle.net>
CC: linux-alpha at vger.kernel.org
CC: Russell King <linux at arm.linux.org.uk>
CC: linux-arm-kernel at lists.infradead.org
CC: Tony Luck <tony.luck at intel.com>
CC: Fenghua Yu <fenghua.yu at intel.com>
CC: linux-ia64 at vger.kernel.org
CC: Ralf Baechle <ralf at linux-mips.org>
CC: linux-mips at linux-mips.org
CC: Benjamin Herrenschmidt <benh at kernel.crashing.org>
CC: Paul Mackerras <paulus at samba.org>
CC: linuxppc-dev at lists.ozlabs.org
CC: Paul Mundt <lethal at linux-sh.org>
CC: linux-sh at vger.kernel.org
CC: "David S. Miller" <davem at davemloft.net>
CC: sparclinux at vger.kernel.org
CC: Guan Xuetao <gxt at mprc.pku.edu.cn>
CC: Ingo Molnar <mingo at redhat.com>
CC: Thomas Gleixner <tglx at linutronix.de>
CC: "H. Peter Anvin" <hpa at zytor.com>
CC: x86 at kernel.org
---
 drivers/input/serio/Kconfig | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/drivers/input/serio/Kconfig b/drivers/input/serio/Kconfig
index 8541f94..1f5cec2 100644
--- a/drivers/input/serio/Kconfig
+++ b/drivers/input/serio/Kconfig
@@ -16,14 +16,19 @@ config SERIO
 	  To compile this driver as a module, choose M here: the
 	  module will be called serio.
 
+config ARCH_MIGHT_HAVE_PC_SERIO
+	bool
+	help
+	  Select this config option from the architecture Kconfig if
+	  the architecture might use a PC serio device (i8042) to
+          communicate with keyboard, mouse, etc.
+
 if SERIO
 
 config SERIO_I8042
 	tristate "i8042 PC Keyboard controller"
 	default y
-	depends on !PARISC && (!ARM || FOOTBRIDGE_HOST) && \
-		   (!SUPERH || SH_CAYMAN) && !M68K && !BLACKFIN && !S390 && \
-		   !ARC
+	depends on ARCH_MIGHT_HAVE_PC_SERIO
 	help
 	  i8042 is the chip over which the standard AT keyboard and PS/2
 	  mouse are connected to the computer. If you use these devices,
-- 
1.8.3.1



More information about the Linuxppc-dev mailing list