1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-15 04:57:10 +02:00
openwrt-xburst/target/linux/generic/patches-2.6.32/035-gpio_keys_backport.patch

16 lines
495 B
Diff
Raw Normal View History

--- a/include/linux/gpio_keys.h
+++ b/include/linux/gpio_keys.h
@@ -15,7 +15,12 @@ struct gpio_keys_button {
struct gpio_keys_platform_data {
struct gpio_keys_button *buttons;
int nbuttons;
+ unsigned int poll_interval; /* polling interval in msecs -
+ for polling driver only */
unsigned int rep:1; /* enable input subsystem auto repeat */
+ int (*enable)(struct device *dev);
+ void (*disable)(struct device *dev);
+ const char *name; /* input device name */
};
#endif