]> git.karo-electronics.de Git - mv-sheeva.git/commit
Input: gpio_keys - add support for interrupt only keys
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 20 Mar 2012 00:54:31 +0000 (17:54 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 20 Mar 2012 00:56:18 +0000 (17:56 -0700)
commitd8ee4a1c90529ed06e1aa43d034986649f7b670b
tree5a9aec5fe8a9b146799842a2dd284495051621e1
parenta16ca23935afc0d72215b139720bd07df3162a9f
Input: gpio_keys - add support for interrupt only keys

Some of buttons, like power-on key or onkey, may only generate interrupts
when pressed and not actually be mapped as gpio in the system. Allow
setting gpio to invalid value and specify IRQ instead to support such
keys. The debounce timer is used not to debounce but to ignore new IRQs
coming while button is kept pressed.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/gpio_keys.c
include/linux/gpio_keys.h