backport missing platform data members for gpio-keys

SVN-Revision: 31306
v19.07.3_mercusys_ac12_duma
Florian Fainelli 12 years ago
parent e4f3867650
commit fb2b2b958e

@ -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
Loading…
Cancel
Save