mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
bc95f3669f
commit
84767d00a8
2 changed files with 15 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue