diff options
author | Seth Forshee <seth.forshee@canonical.com> | 2011-07-01 11:34:27 +0200 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2011-08-05 14:45:48 -0400 |
commit | c4453f6a7ceff330ff37a9712ee8305fc3f8e9b6 (patch) | |
tree | 6a1564cbff80f8a7df4fa7160cc442ed6d49103a /drivers/platform/x86/asus-wmi.h | |
parent | 49979d091d1847823c064301da1ec173619ddd92 (diff) | |
download | op-kernel-dev-c4453f6a7ceff330ff37a9712ee8305fc3f8e9b6.zip op-kernel-dev-c4453f6a7ceff330ff37a9712ee8305fc3f8e9b6.tar.gz |
asus-wmi: Add callback for hotkey filtering
This is required for the T101MT home key, which behaves differently
than other hotkeys.
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/asus-wmi.h')
-rw-r--r-- | drivers/platform/x86/asus-wmi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/platform/x86/asus-wmi.h b/drivers/platform/x86/asus-wmi.h index c044522..4da6103 100644 --- a/drivers/platform/x86/asus-wmi.h +++ b/drivers/platform/x86/asus-wmi.h @@ -29,6 +29,8 @@ #include <linux/platform_device.h> +#define ASUS_WMI_KEY_IGNORE (-1) + struct module; struct key_entry; struct asus_wmi; @@ -44,6 +46,10 @@ struct asus_wmi_driver { const struct key_entry *keymap; const char *input_name; const char *input_phys; + /* Returns new code, value, and autorelease values in arguments. + * Return ASUS_WMI_KEY_IGNORE in code if event should be ignored. */ + void (*key_filter) (struct asus_wmi_driver *driver, int *code, + unsigned int *value, bool *autorelease); int (*probe) (struct platform_device *device); void (*quirks) (struct asus_wmi_driver *driver); |