1#ifndef _GPIO_KEYS_H
2#define _GPIO_KEYS_H
3
4struct device;
5
6struct 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
20struct gpio_keys_platform_data {
21 struct gpio_keys_button *buttons;
22 int nbuttons;
23 unsigned int poll_interval;
24
25 unsigned int rep:1;
26 int (*enable)(struct device *dev);
27 void (*disable)(struct device *dev);
28 const char *name;
29};
30
31#endif
32