gpio_keys.h 546 字节
Newer Older
1 2 3 4 5
#ifndef _GPIO_KEYS_H
#define _GPIO_KEYS_H

struct gpio_keys_button {
	/* Configuration parameters */
6
	int code;		/* input event code (KEY_*, SW_*) */
7 8 9
	int gpio;
	int active_low;
	char *desc;
10
	int type;		/* input event type (EV_KEY, EV_SW) */
11
	int wakeup;		/* configure the button as a wake-up source */
12
	int debounce_interval;	/* debounce ticks interval in msecs */
13
	bool can_disable;
14 15 16 17 18
};

struct gpio_keys_platform_data {
	struct gpio_keys_button *buttons;
	int nbuttons;
19
	unsigned int rep:1;		/* enable input subsystem auto repeat */
20 21 22
};

#endif