2007-01-18 00:44:09 -05:00
|
|
|
#ifndef _GPIO_KEYS_H
|
|
|
|
#define _GPIO_KEYS_H
|
|
|
|
|
|
|
|
struct gpio_keys_button {
|
|
|
|
/* Configuration parameters */
|
2007-05-01 00:39:13 -04:00
|
|
|
int code; /* input event code (KEY_*, SW_*) */
|
2007-01-18 00:44:09 -05:00
|
|
|
int gpio;
|
|
|
|
int active_low;
|
|
|
|
char *desc;
|
2007-05-01 00:39:13 -04:00
|
|
|
int type; /* input event type (EV_KEY, EV_SW) */
|
2007-01-18 00:44:09 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
struct gpio_keys_platform_data {
|
|
|
|
struct gpio_keys_button *buttons;
|
|
|
|
int nbuttons;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|