aboutsummaryrefslogtreecommitdiff
path: root/include/linux/gpio_keys.h
blob: a58d7bd1abc6035b5f3832ad13bf5f35d2c067c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _GPIO_KEYS_H
#define _GPIO_KEYS_H

struct device;

struct gpio_keys_button {
	
	unsigned int code;	
	int gpio;		
	int active_low;
	const char *desc;
	unsigned int type;	
	int wakeup;		
	int debounce_interval;	
	bool can_disable;
	int value;		
	unsigned int irq;	
};

struct gpio_keys_platform_data {
	struct gpio_keys_button *buttons;
	int nbuttons;
	unsigned int poll_interval;	
	unsigned int rep:1;		
	int (*enable)(struct device *dev);
	void (*disable)(struct device *dev);
	const char *name;		
};

#endif