From 8a6d48c0542876eb3acfc0970c0ab7872db08d5f Mon Sep 17 00:00:00 2001 From: Zheng Da Date: Sun, 6 Dec 2009 05:26:23 +0100 Subject: check in the original version of dde linux26. --- libdde_linux26/contrib/include/linux/gpio_keys.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libdde_linux26/contrib/include/linux/gpio_keys.h (limited to 'libdde_linux26/contrib/include/linux/gpio_keys.h') diff --git a/libdde_linux26/contrib/include/linux/gpio_keys.h b/libdde_linux26/contrib/include/linux/gpio_keys.h new file mode 100644 index 00000000..1289fa76 --- /dev/null +++ b/libdde_linux26/contrib/include/linux/gpio_keys.h @@ -0,0 +1,21 @@ +#ifndef _GPIO_KEYS_H +#define _GPIO_KEYS_H + +struct gpio_keys_button { + /* Configuration parameters */ + int code; /* input event code (KEY_*, SW_*) */ + int gpio; + int active_low; + char *desc; + int type; /* input event type (EV_KEY, EV_SW) */ + int wakeup; /* configure the button as a wake-up source */ + int debounce_interval; /* debounce ticks interval in msecs */ +}; + +struct gpio_keys_platform_data { + struct gpio_keys_button *buttons; + int nbuttons; + unsigned int rep:1; /* enable input subsystem auto repeat */ +}; + +#endif -- cgit v1.2.3