summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-04-16 12:09:15 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-04-16 12:09:15 +0000
commitfb2b2b958e9da0d9ea0195a0829da52a0eda667c (patch)
tree89e822cde322211d9d39a19cf0397fea128b4d8e /target
parente4f38676507adcba20971408d17177a40e9bf4b4 (diff)
downloadmtk-20170518-fb2b2b958e9da0d9ea0195a0829da52a0eda667c.zip
mtk-20170518-fb2b2b958e9da0d9ea0195a0829da52a0eda667c.tar.gz
mtk-20170518-fb2b2b958e9da0d9ea0195a0829da52a0eda667c.tar.bz2
backport missing platform data members for gpio-keys
SVN-Revision: 31306
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic/patches-2.6.32/035-gpio_keys_backport.patch15
1 files changed, 15 insertions, 0 deletions
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
index 0000000..308aef3
--- /dev/null
+++ b/target/linux/generic/patches-2.6.32/035-gpio_keys_backport.patch
@@ -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