Input: add ADC resistor ladder driver
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 30 Aug 2016 02:57:06 +0000 (19:57 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 30 Aug 2016 03:00:58 +0000 (20:00 -0700)
commit680772647d96ed853d20f837a2726151f24d8b20
tree79e7d495a74ca81775e13c6b5b1b4756baff67b6
parentf959cd8c0eafe2bdaa9d0ec3e3da3b9451ad38aa
Input: add ADC resistor ladder driver

A common way of multiplexing buttons on a single input in cheap devices is
to use a resistor ladder on an ADC. This driver supports that configuration
by polling an ADC channel provided by IIO.

Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/adc-keys.txt [new file with mode: 0644]
drivers/input/keyboard/Kconfig
drivers/input/keyboard/Makefile
drivers/input/keyboard/adc-keys.c [new file with mode: 0644]