diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-06 16:26:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-06 16:26:15 -0400 |
commit | 2560540b78b48c8050f56e8ff5903c11a4f7a16e (patch) | |
tree | fca860f19ef6845e0d61dad8d8e3648c059b4ecd /drivers/platform/x86/asus-nb-wmi.c | |
parent | 45a05f9488911851f7a5c536df80b41f0105caf0 (diff) | |
parent | 15b956a0b5651bbb1217ec374fdd67291dabb2af (diff) |
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86: (38 commits)
acer-wmi: support Lenovo ideapad S205 wifi switch
acerhdf.c: spaces in aliased changed to *
platform-drivers-x86: ideapad-laptop: add missing ideapad_input_exit in ideapad_acpi_add error path
x86 driver: fix typo in TDP override enabling
Platform: fix samsung-laptop DMI identification for N150/N210/220/N230
dell-wmi: Add keys for Dell XPS L502X
platform-drivers-x86: samsung-q10: make dmi_check_callback return 1
Platform: Samsung Q10 backlight driver
platform-drivers-x86: intel_scu_ipc: convert to DEFINE_PCI_DEVICE_TABLE
platform-drivers-x86: intel_rar_register: convert to DEFINE_PCI_DEVICE_TABLE
platform-drivers-x86: intel_menlow: add missing return AE_OK for intel_menlow_register_sensor()
platform-drivers-x86: intel_mid_thermal: fix memory leak
platform-drivers-x86: msi-wmi: add missing sparse_keymap_free in msi_wmi_init error path
Samsung Laptop platform driver: support N510
asus-wmi: add uwb rfkill support
asus-wmi: add gps rfkill support
asus-wmi: add CWAP support and clarify the meaning of WAPF bits
asus-wmi: return proper value in store_cpufv()
asus-wmi: check for temp1 presence
asus-wmi: add thermal sensor
...
Diffstat (limited to 'drivers/platform/x86/asus-nb-wmi.c')
-rw-r--r-- | drivers/platform/x86/asus-nb-wmi.c | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c index 0580d99b0798..b0859d4183e8 100644 --- a/drivers/platform/x86/asus-nb-wmi.c +++ b/drivers/platform/x86/asus-nb-wmi.c | |||
@@ -38,6 +38,24 @@ MODULE_LICENSE("GPL"); | |||
38 | 38 | ||
39 | MODULE_ALIAS("wmi:"ASUS_NB_WMI_EVENT_GUID); | 39 | MODULE_ALIAS("wmi:"ASUS_NB_WMI_EVENT_GUID); |
40 | 40 | ||
41 | /* | ||
42 | * WAPF defines the behavior of the Fn+Fx wlan key | ||
43 | * The significance of values is yet to be found, but | ||
44 | * most of the time: | ||
45 | * Bit | Bluetooth | WLAN | ||
46 | * 0 | Hardware | Hardware | ||
47 | * 1 | Hardware | Software | ||
48 | * 4 | Software | Software | ||
49 | */ | ||
50 | static uint wapf; | ||
51 | module_param(wapf, uint, 0444); | ||
52 | MODULE_PARM_DESC(wapf, "WAPF value"); | ||
53 | |||
54 | static void asus_nb_wmi_quirks(struct asus_wmi_driver *driver) | ||
55 | { | ||
56 | driver->wapf = wapf; | ||
57 | } | ||
58 | |||
41 | static const struct key_entry asus_nb_wmi_keymap[] = { | 59 | static const struct key_entry asus_nb_wmi_keymap[] = { |
42 | { KE_KEY, 0x30, { KEY_VOLUMEUP } }, | 60 | { KE_KEY, 0x30, { KEY_VOLUMEUP } }, |
43 | { KE_KEY, 0x31, { KEY_VOLUMEDOWN } }, | 61 | { KE_KEY, 0x31, { KEY_VOLUMEDOWN } }, |
@@ -53,16 +71,16 @@ static const struct key_entry asus_nb_wmi_keymap[] = { | |||
53 | { KE_KEY, 0x51, { KEY_WWW } }, | 71 | { KE_KEY, 0x51, { KEY_WWW } }, |
54 | { KE_KEY, 0x55, { KEY_CALC } }, | 72 | { KE_KEY, 0x55, { KEY_CALC } }, |
55 | { KE_KEY, 0x5C, { KEY_F15 } }, /* Power Gear key */ | 73 | { KE_KEY, 0x5C, { KEY_F15 } }, /* Power Gear key */ |
56 | { KE_KEY, 0x5D, { KEY_WLAN } }, | 74 | { KE_KEY, 0x5D, { KEY_WLAN } }, /* Wireless console Toggle */ |
57 | { KE_KEY, 0x5E, { KEY_WLAN } }, | 75 | { KE_KEY, 0x5E, { KEY_WLAN } }, /* Wireless console Enable */ |
58 | { KE_KEY, 0x5F, { KEY_WLAN } }, | 76 | { KE_KEY, 0x5F, { KEY_WLAN } }, /* Wireless console Disable */ |
59 | { KE_KEY, 0x60, { KEY_SWITCHVIDEOMODE } }, | 77 | { KE_KEY, 0x60, { KEY_SWITCHVIDEOMODE } }, |
60 | { KE_KEY, 0x61, { KEY_SWITCHVIDEOMODE } }, | 78 | { KE_KEY, 0x61, { KEY_SWITCHVIDEOMODE } }, |
61 | { KE_KEY, 0x62, { KEY_SWITCHVIDEOMODE } }, | 79 | { KE_KEY, 0x62, { KEY_SWITCHVIDEOMODE } }, |
62 | { KE_KEY, 0x63, { KEY_SWITCHVIDEOMODE } }, | 80 | { KE_KEY, 0x63, { KEY_SWITCHVIDEOMODE } }, |
63 | { KE_KEY, 0x6B, { KEY_TOUCHPAD_TOGGLE } }, | 81 | { KE_KEY, 0x6B, { KEY_TOUCHPAD_TOGGLE } }, |
64 | { KE_KEY, 0x7E, { KEY_BLUETOOTH } }, | ||
65 | { KE_KEY, 0x7D, { KEY_BLUETOOTH } }, | 82 | { KE_KEY, 0x7D, { KEY_BLUETOOTH } }, |
83 | { KE_KEY, 0x7E, { KEY_BLUETOOTH } }, | ||
66 | { KE_KEY, 0x82, { KEY_CAMERA } }, | 84 | { KE_KEY, 0x82, { KEY_CAMERA } }, |
67 | { KE_KEY, 0x88, { KEY_RFKILL } }, | 85 | { KE_KEY, 0x88, { KEY_RFKILL } }, |
68 | { KE_KEY, 0x8A, { KEY_PROG1 } }, | 86 | { KE_KEY, 0x8A, { KEY_PROG1 } }, |
@@ -81,6 +99,7 @@ static struct asus_wmi_driver asus_nb_wmi_driver = { | |||
81 | .keymap = asus_nb_wmi_keymap, | 99 | .keymap = asus_nb_wmi_keymap, |
82 | .input_name = "Asus WMI hotkeys", | 100 | .input_name = "Asus WMI hotkeys", |
83 | .input_phys = ASUS_NB_WMI_FILE "/input0", | 101 | .input_phys = ASUS_NB_WMI_FILE "/input0", |
102 | .quirks = asus_nb_wmi_quirks, | ||
84 | }; | 103 | }; |
85 | 104 | ||
86 | 105 | ||