Blame view

include/linux/gpio_keys.h 620 Bytes
78a56aab1   Phil Blundell   Input: gpio-keys ...
1
2
3
4
5
  #ifndef _GPIO_KEYS_H
  #define _GPIO_KEYS_H
  
  struct gpio_keys_button {
  	/* Configuration parameters */
84767d00a   Roman Moravcik   Input: gpio_keys ...
6
  	int code;		/* input event code (KEY_*, SW_*) */
78a56aab1   Phil Blundell   Input: gpio-keys ...
7
8
9
  	int gpio;
  	int active_low;
  	char *desc;
84767d00a   Roman Moravcik   Input: gpio_keys ...
10
  	int type;		/* input event type (EV_KEY, EV_SW) */
e15b02138   Anti Sullin   Input: gpio-keys ...
11
  	int wakeup;		/* configure the button as a wake-up source */
a33466e31   Dmitry Eremin-Solenikov   Input: gpio-keys ...
12
  	int debounce_interval;	/* debounce ticks interval in msecs */
9e3af04f8   Mika Westerberg   Input: gpio-keys ...
13
  	bool can_disable;
78a56aab1   Phil Blundell   Input: gpio-keys ...
14
15
16
17
18
  };
  
  struct gpio_keys_platform_data {
  	struct gpio_keys_button *buttons;
  	int nbuttons;
b67b4b117   Dominic Curran   Input: gpio-keys ...
19
  	unsigned int rep:1;		/* enable input subsystem auto repeat */
173bdd746   Shubhrajyoti D   Input: gpio_keys ...
20
21
  	int (*enable)(struct device *dev);
  	void (*disable)(struct device *dev);
78a56aab1   Phil Blundell   Input: gpio-keys ...
22
23
24
  };
  
  #endif