]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
input: samsung-keypad: Add HAVE_SAMSUNG_KEYPAD config option
authorThomas Abraham <thomas.abraham@linaro.org>
Wed, 2 Nov 2011 10:37:22 +0000 (19:37 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Wed, 2 Nov 2011 11:51:25 +0000 (20:51 +0900)
For platforms using device tree, the static keypad device instances
are not required and SAMSUNG_DEV_KEYPAD is not selected. Since,
samsung keypad driver has dependency on SAMSUNG_DEV_KEYPAD config
option, the driver is left out of the compilation for dt enabled
platforms.

An additional config option 'HAVE_SAMSUNG_KEYPAD' is added
which the device tree based platforms can select. This config
option is added as an alternative dependency for keypad driver.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
drivers/input/keyboard/Kconfig

index 615c21f2a5539d786ec3188c501558a2084a2b46..d80b4eac498938a73a7d3af3823952a8c1b21223 100644 (file)
@@ -423,9 +423,16 @@ config KEYBOARD_PMIC8XXX
          To compile this driver as a module, choose M here: the module will
          be called pmic8xxx-keypad.
 
+config HAVE_SAMSUNG_KEYPAD
+       bool
+       help
+         This will include Samsung Keypad controller driver support. If you
+         want to include Samsung Keypad support for any machine, kindly
+         select this in the respective mach-xxxx/Kconfig file.
+
 config KEYBOARD_SAMSUNG
        tristate "Samsung keypad support"
-       depends on SAMSUNG_DEV_KEYPAD
+       depends on SAMSUNG_DEV_KEYPAD || HAVE_SAMSUNG_KEYPAD
        help
          Say Y here if you want to use the Samsung keypad.