aboutsummaryrefslogtreecommitdiff
path: root/include/linux/gpio_keys.h
AgeCommit message (Collapse)AuthorFilesLines
2012-03-19Input: gpio_keys - add support for interrupt only keysLaxman Dewangan1-1/+2
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 <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-02-01Input: gpio_keys - fix struct device declared inside parameter listHeiko Stübner1-0/+2
A struct device parameter is used in the enable and disable callbacks to distinguish between different gpio_keys devices. Platforms that don't use these callbacks may not include struct device at all, as seen on arch/arm/mach-s3c2410/mach-n30.c Signed-off-by: Heiko Stuebner <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-04-11Input: gpio-keys - add support for setting device nameAlexander Stein1-0/+1
This patch allows to set a device name which helps distinguishing several gpio-keys devices. Signed-off-by: Alexander Stein <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-04-11Input: gpio_keys - add support for EV_ABSAlexander Stein1-3/+4
With this patch you can setup a group of GPIOs representing a specific position on an EV_ABS axis. Signed-off-by: Alexander Stein <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-12-06Input: add input driver for polled GPIO buttonsGabor Juhos1-0/+2
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 <[email protected]: fold code to use more of the original gpio_keys infrastructure; cleanups and other improvements.] Signed-off-by: Gabor Juhos <[email protected]> Signed-off-by: Ben Gardiner <[email protected]> Tested-by: Ben Gardiner <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-08-03Input: gpio_keys - add hooks to enable/disable deviceShubhrajyoti D1-0/+2
Allow platform code to specify callbcks that will be invoked when input device is opened or closed, allowing, for example, to enable the device. Signed-off-by: Shubhrajyoti D <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2010-02-04Input: gpio-keys - add support for disabling gpios through sysfsMika Westerberg1-0/+1
Now gpio-keys input driver exports 4 new attributes to userland through sysfs: /sys/devices/platform/gpio-keys/keys [ro] /sys/devices/platform/gpio-keys/switches [ro] /sys/devices/platform/gpio-keys/disabled_keys [rw] /sys/devices/platform/gpio-keys/disables_switches [rw] With these attributes, userland program can read which keys and switches can be disabled and then disable/enable them as needed. Keys and switches are exported as stringified bitmap of codes (keycodes or switch codes). For example keys 15, 89, 100, 101, 102 are exported as: '15,89,100-102'. Description of the attributes: keys - bitmap of keys which can be disabled switches - bitmap of switches which can be disabled disabled_keys - bitmap of currently disabled keys (bit 1 means disabled, 0 enabled) disabled_switches - bitmap of currently disabled switches (bit 1 means disabled, 0 enabled) Signed-off-by: Mika Westerberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2008-10-27Input: gpio-keys - add flag to allow auto repeatDominic Curran1-0/+1
This patch adds a flag to gpio-key driver to turn on the input subsystems auto repeat feature if needed. Signed-off-by: Dominic Curran <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2008-05-16Input: gpio-keys debouncing supportDmitry Baryshkov1-0/+1
Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-09-26Input: gpio-keys - add suspend/resume supportAnti Sullin1-0/+1
This patch adds suspend/resume support and enables wakeup from gpio_keys buttons. Signed-off-by: Anti Sullin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-05-01Input: gpio_keys - add support for switches (EV_SW)Roman Moravcik1-1/+2
Signed-off-by: Roman Moravcik <[email protected]> Signed-off-by: Paul Sokolovsky <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-05[PATCH] gpio_keys driver shouldn't be ARM-specificDavid Brownell1-0/+17
The gpio_keys driver is wrongly ARM-specific; it can't build on other platforms with GPIO suport. This fixes that problem. Signed-off-by: David Brownell <[email protected]> Cc: Dmitry Torokhov <[email protected]> Cc: pHilipp Zabel <[email protected]> Cc: Haavard Skinnemoen <[email protected]> Cc: Russell King <[email protected]> Cc: Richard Purdie <[email protected]> Cc: Ben Nizette <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>