diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-04-16 12:09:15 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-04-16 12:09:15 +0000 |
commit | ab1585c224edef54d401f638c9bd012c8ad83be2 (patch) | |
tree | f0f28c214887d4bbd8272e027a37bcdf7ff0594c | |
parent | dfad2f5e19c52f3f5c797dd84e4f20bf82c105f2 (diff) |
[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
-rw-r--r-- | target/linux/generic/patches-2.6.32/035-gpio_keys_backport.patch | 15 |
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 000000000..308aef37b --- /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 |