Blame view
include/linux/gpio_keys.h
715 Bytes
78a56aab1
|
1 2 3 4 5 |
#ifndef _GPIO_KEYS_H #define _GPIO_KEYS_H struct gpio_keys_button { /* Configuration parameters */ |
84767d00a
|
6 |
int code; /* input event code (KEY_*, SW_*) */ |
78a56aab1
|
7 8 9 |
int gpio; int active_low; char *desc; |
84767d00a
|
10 |
int type; /* input event type (EV_KEY, EV_SW) */ |
e15b02138
|
11 |
int wakeup; /* configure the button as a wake-up source */ |
a33466e31
|
12 |
int debounce_interval; /* debounce ticks interval in msecs */ |
9e3af04f8
|
13 |
bool can_disable; |
78a56aab1
|
14 15 16 17 18 |
}; struct gpio_keys_platform_data { struct gpio_keys_button *buttons; int nbuttons; |
0e7d0c860
|
19 20 |
unsigned int poll_interval; /* polling interval in msecs - for polling driver only */ |
b67b4b117
|
21 |
unsigned int rep:1; /* enable input subsystem auto repeat */ |
173bdd746
|
22 23 |
int (*enable)(struct device *dev); void (*disable)(struct device *dev); |
78a56aab1
|
24 25 26 |
}; #endif |