UPSTREAM: Input: add ADC resistor ladder driver
[firefly-linux-kernel-4.4.55.git] / drivers / input / keyboard / Kconfig
index 56759912e9dda853782b4adedc62ee53c239cd10..d24fc86bc615f994065ac9dd45a6d54fa4441e87 100644 (file)
@@ -12,6 +12,21 @@ menuconfig INPUT_KEYBOARD
 
 if INPUT_KEYBOARD
 
+config KEYBOARD_ADC
+       tristate "ADC Ladder Buttons"
+       depends on IIO
+       select INPUT_POLLDEV
+       help
+         This driver implements support for buttons connected
+         to an ADC using a resistor ladder.
+
+         Say Y here if your device has such buttons connected to an ADC.  Your
+         board-specific setup logic must also provide a configuration data
+         for mapping voltages to buttons.
+
+         To compile this driver as a module, choose M here: the
+         module will be called adc_keys.
+
 config KEYBOARD_ADP5520
        tristate "Keypad Support for ADP5520 PMIC"
        depends on PMIC_ADP5520