summaryrefslogtreecommitdiffstats
path: root/include/linux/gpio_keys.h
diff options
context:
space:
mode:
authorRoman Moravcik <roman.moravcik@gmail.com>2007-05-01 00:39:13 -0400
committerDmitry Torokhov <dtor@insightbb.com>2007-05-01 00:39:13 -0400
commit84767d00a8fd54dd97866561f6e2ee246c8e1cdc (patch)
tree230e23cb988b86a6c81736a7915ed733771ad990 /include/linux/gpio_keys.h
parentbc95f3669f5e6f63cf0b84fe4922c3c6dd4aa775 (diff)
downloadlinux-84767d00a8fd54dd97866561f6e2ee246c8e1cdc.tar.gz
linux-84767d00a8fd54dd97866561f6e2ee246c8e1cdc.tar.bz2
linux-84767d00a8fd54dd97866561f6e2ee246c8e1cdc.zip
Input: gpio_keys - add support for switches (EV_SW)
Signed-off-by: Roman Moravcik <roman.moravcik@gmail.com> Signed-off-by: Paul Sokolovsky <pmiscml@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/gpio_keys.h')
-rw-r--r--include/linux/gpio_keys.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/gpio_keys.h b/include/linux/gpio_keys.h
index 2b217c7b9312..265d17830a0f 100644
--- a/include/linux/gpio_keys.h
+++ b/include/linux/gpio_keys.h
@@ -3,10 +3,11 @@
struct gpio_keys_button {
/* Configuration parameters */
- int keycode;
+ int code; /* input event code (KEY_*, SW_*) */
int gpio;
int active_low;
char *desc;
+ int type; /* input event type (EV_KEY, EV_SW) */
};
struct gpio_keys_platform_data {