diff options
| author | Mark Salter <msalter@redhat.com> | 2014-01-01 14:34:39 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-01-02 18:48:22 -0500 |
| commit | 5cd3f8f89c38c2681a67290b6a463b12c2aede9e (patch) | |
| tree | 40f9245918e4d19362a3a7d46045bd9ceec4326e /drivers/input/serio | |
| parent | 5e2c18c0ed708e2a53f3e0673a786b6df2fb56fb (diff) | |
Input: i8042 - cleanup SERIO_I8042 dependencies
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@redhat.com>
Acked-by: "H. Peter Anvin" <hpa@zytor.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/serio')
| -rw-r--r-- | drivers/input/serio/Kconfig | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/input/serio/Kconfig b/drivers/input/serio/Kconfig index 8541f949778d..aec54e283580 100644 --- a/drivers/input/serio/Kconfig +++ b/drivers/input/serio/Kconfig | |||
| @@ -16,14 +16,19 @@ config SERIO | |||
| 16 | To compile this driver as a module, choose M here: the | 16 | To compile this driver as a module, choose M here: the |
| 17 | module will be called serio. | 17 | module will be called serio. |
| 18 | 18 | ||
| 19 | config ARCH_MIGHT_HAVE_PC_SERIO | ||
| 20 | bool | ||
| 21 | help | ||
| 22 | Select this config option from the architecture Kconfig if | ||
| 23 | the architecture might use a PC serio device (i8042) to | ||
| 24 | communicate with keyboard, mouse, etc. | ||
| 25 | |||
| 19 | if SERIO | 26 | if SERIO |
| 20 | 27 | ||
| 21 | config SERIO_I8042 | 28 | config SERIO_I8042 |
| 22 | tristate "i8042 PC Keyboard controller" | 29 | tristate "i8042 PC Keyboard controller" |
| 23 | default y | 30 | default y |
| 24 | depends on !PARISC && (!ARM || FOOTBRIDGE_HOST) && \ | 31 | depends on ARCH_MIGHT_HAVE_PC_SERIO |
| 25 | (!SUPERH || SH_CAYMAN) && !M68K && !BLACKFIN && !S390 && \ | ||
| 26 | !ARC | ||
| 27 | help | 32 | help |
| 28 | i8042 is the chip over which the standard AT keyboard and PS/2 | 33 | i8042 is the chip over which the standard AT keyboard and PS/2 |
| 29 | mouse are connected to the computer. If you use these devices, | 34 | mouse are connected to the computer. If you use these devices, |
