diff options
Diffstat (limited to 'include/linux/gpio_keys.h')
-rw-r--r-- | include/linux/gpio_keys.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/gpio_keys.h b/include/linux/gpio_keys.h index b5ca4b2c08e..50f7ced738a 100644 --- a/include/linux/gpio_keys.h +++ b/include/linux/gpio_keys.h | |||
@@ -4,7 +4,7 @@ | |||
4 | struct gpio_keys_button { | 4 | struct gpio_keys_button { |
5 | /* Configuration parameters */ | 5 | /* Configuration parameters */ |
6 | unsigned int code; /* input event code (KEY_*, SW_*) */ | 6 | unsigned int code; /* input event code (KEY_*, SW_*) */ |
7 | int gpio; | 7 | int gpio; /* -1 if this key does not support gpio */ |
8 | int active_low; | 8 | int active_low; |
9 | const char *desc; | 9 | const char *desc; |
10 | unsigned int type; /* input event type (EV_KEY, EV_SW, EV_ABS) */ | 10 | unsigned int type; /* input event type (EV_KEY, EV_SW, EV_ABS) */ |
@@ -12,6 +12,7 @@ struct gpio_keys_button { | |||
12 | int debounce_interval; /* debounce ticks interval in msecs */ | 12 | int debounce_interval; /* debounce ticks interval in msecs */ |
13 | bool can_disable; | 13 | bool can_disable; |
14 | int value; /* axis value for EV_ABS */ | 14 | int value; /* axis value for EV_ABS */ |
15 | unsigned int irq; /* Irq number in case of interrupt keys */ | ||
15 | }; | 16 | }; |
16 | 17 | ||
17 | struct gpio_keys_platform_data { | 18 | struct gpio_keys_platform_data { |
@@ -23,6 +24,7 @@ struct gpio_keys_platform_data { | |||
23 | int (*enable)(struct device *dev); | 24 | int (*enable)(struct device *dev); |
24 | void (*disable)(struct device *dev); | 25 | void (*disable)(struct device *dev); |
25 | const char *name; /* input device name */ | 26 | const char *name; /* input device name */ |
27 | int (*wakeup_key)(void); | ||
26 | }; | 28 | }; |
27 | 29 | ||
28 | #endif | 30 | #endif |