1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-19 07:13:09 +02:00

[kernel/2.6.32] backport missing platform data members for gpio-keys

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31306 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2012-04-16 12:09:15 +00:00
parent dfad2f5e19
commit ab1585c224

View File

@ -0,0 +1,15 @@
--- 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