Blame view
include/linux/gpio_keys.h
620 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; |
b67b4b117
|
19 |
unsigned int rep:1; /* enable input subsystem auto repeat */ |
173bdd746
|
20 21 |
int (*enable)(struct device *dev); void (*disable)(struct device *dev); |
78a56aab1
|
22 23 24 |
}; #endif |