blob: a58d7bd1abc6035b5f3832ad13bf5f35d2c067c7 [file] [log] [blame]
Nicholas Flintham1e3d3112013-04-10 10:48:38 +01001#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 unsigned int rep:1;
25 int (*enable)(struct device *dev);
26 void (*disable)(struct device *dev);
27 const char *name;
28};
29
30#endif