Nicholas Flintham | 1e3d311 | 2013-04-10 10:48:38 +0100 | [diff] [blame^] | 1 | #ifndef _GPIO_KEYS_H |
| 2 | #define _GPIO_KEYS_H |
| 3 | |
| 4 | struct device; |
| 5 | |
| 6 | struct gpio_keys_button { |
| 7 | |
| 8 | unsigned int code; |
| 9 | int gpio; |
| 10 | int active_low; |
| 11 | const char *desc; |
| 12 | unsigned int type; |
| 13 | int wakeup; |
| 14 | int debounce_interval; |
| 15 | bool can_disable; |
| 16 | int value; |
| 17 | unsigned int irq; |
| 18 | }; |
| 19 | |
| 20 | struct gpio_keys_platform_data { |
| 21 | struct gpio_keys_button *buttons; |
| 22 | int nbuttons; |
| 23 | unsigned int poll_interval; |
| 24 | unsigned int rep:1; |
| 25 | int (*enable)(struct device *dev); |
| 26 | void (*disable)(struct device *dev); |
| 27 | const char *name; |
| 28 | }; |
| 29 | |
| 30 | #endif |