Input: add input driver for polled GPIO buttons
The existing gpio-keys driver can be usable only for GPIO lines with interrupt support. Several devices have buttons connected to a GPIO line which is not capable to generate interrupts. This patch adds a new input driver using the generic GPIO layer and the input-polldev to support such buttons. [Ben Gardiner <bengardiner@nanometrics.ca: fold code to use more of the original gpio_keys infrastructure; cleanups and other improvements.] Signed-off-by:Gabor Juhos <juhosg@openwrt.org> Signed-off-by:
Ben Gardiner <bengardiner@nanometrics.ca> Tested-by:
Ben Gardiner <bengardiner@nanometrics.ca> Signed-off-by:
Dmitry Torokhov <dtor@mail.ru>
Showing
- drivers/input/keyboard/Kconfig 16 additions, 0 deletionsdrivers/input/keyboard/Kconfig
- drivers/input/keyboard/Makefile 1 addition, 0 deletionsdrivers/input/keyboard/Makefile
- drivers/input/keyboard/gpio_keys_polled.c 261 additions, 0 deletionsdrivers/input/keyboard/gpio_keys_polled.c
- include/linux/gpio_keys.h 2 additions, 0 deletionsinclude/linux/gpio_keys.h
Loading
Please register or sign in to comment