summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-2.6.32/035-gpio_keys_backport.patch
blob: 308aef37b02138d2e51f37f03ae4b2a8142d2b1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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