backport missing platform data members for gpio-keys
authorFlorian Fainelli <florian@openwrt.org>
Mon, 16 Apr 2012 12:09:15 +0000 (12:09 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Mon, 16 Apr 2012 12:09:15 +0000 (12:09 +0000)
SVN-Revision: 31306

target/linux/generic/patches-2.6.32/035-gpio_keys_backport.patch [new file with mode: 0644]

diff --git a/target/linux/generic/patches-2.6.32/035-gpio_keys_backport.patch b/target/linux/generic/patches-2.6.32/035-gpio_keys_backport.patch
new file mode 100644 (file)
index 0000000..308aef3
--- /dev/null
@@ -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