diff options
Diffstat (limited to 'drivers/platform/x86/asus-wmi.h')
-rw-r--r-- | drivers/platform/x86/asus-wmi.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/platform/x86/asus-wmi.h b/drivers/platform/x86/asus-wmi.h index c044522c8766..8147c10161cc 100644 --- a/drivers/platform/x86/asus-wmi.h +++ b/drivers/platform/x86/asus-wmi.h | |||
@@ -29,12 +29,15 @@ | |||
29 | 29 | ||
30 | #include <linux/platform_device.h> | 30 | #include <linux/platform_device.h> |
31 | 31 | ||
32 | #define ASUS_WMI_KEY_IGNORE (-1) | ||
33 | |||
32 | struct module; | 34 | struct module; |
33 | struct key_entry; | 35 | struct key_entry; |
34 | struct asus_wmi; | 36 | struct asus_wmi; |
35 | 37 | ||
36 | struct asus_wmi_driver { | 38 | struct asus_wmi_driver { |
37 | bool hotplug_wireless; | 39 | bool hotplug_wireless; |
40 | int wapf; | ||
38 | 41 | ||
39 | const char *name; | 42 | const char *name; |
40 | struct module *owner; | 43 | struct module *owner; |
@@ -44,6 +47,10 @@ struct asus_wmi_driver { | |||
44 | const struct key_entry *keymap; | 47 | const struct key_entry *keymap; |
45 | const char *input_name; | 48 | const char *input_name; |
46 | const char *input_phys; | 49 | const char *input_phys; |
50 | /* Returns new code, value, and autorelease values in arguments. | ||
51 | * Return ASUS_WMI_KEY_IGNORE in code if event should be ignored. */ | ||
52 | void (*key_filter) (struct asus_wmi_driver *driver, int *code, | ||
53 | unsigned int *value, bool *autorelease); | ||
47 | 54 | ||
48 | int (*probe) (struct platform_device *device); | 55 | int (*probe) (struct platform_device *device); |
49 | void (*quirks) (struct asus_wmi_driver *driver); | 56 | void (*quirks) (struct asus_wmi_driver *driver); |