diff options
author | Alex Hung <alex.hung@canonical.com> | 2012-06-19 23:47:35 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2012-07-28 00:06:02 -0400 |
commit | 63a78bb1051b240417daad3a3fa9c1bb10646dca (patch) | |
tree | b31d8e38396d1624a41a337f90dd53376ffcc628 /drivers/platform | |
parent | f948ad0787de7b393c325803014fd7d5f1b501b1 (diff) |
asus-wmi: use ASUS_WMI_METHODID_DSTS2 as default DSTS ID.
According to responses from the BIOS team, ASUS_WMI_METHODID_DSTS2
(0x53545344) will be used as future DSTS ID. In addition, calling
asus_wmi_evaluate_method(ASUS_WMI_METHODID_DSTS2, 0, 0, NULL) returns
ASUS_WMI_UNSUPPORTED_METHOD in new ASUS laptop PCs. This patch fixes
no DSTS ID will be assigned in this case.
Signed-off-by: Alex Hung <alex.hung@canonical.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Cc: stable@kernel.org
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/asus-wmi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index 77aadde5281c..556cbb455ed2 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c | |||
@@ -1467,14 +1467,9 @@ static int asus_wmi_platform_init(struct asus_wmi *asus) | |||
1467 | */ | 1467 | */ |
1468 | if (!asus_wmi_evaluate_method(ASUS_WMI_METHODID_DSTS, 0, 0, NULL)) | 1468 | if (!asus_wmi_evaluate_method(ASUS_WMI_METHODID_DSTS, 0, 0, NULL)) |
1469 | asus->dsts_id = ASUS_WMI_METHODID_DSTS; | 1469 | asus->dsts_id = ASUS_WMI_METHODID_DSTS; |
1470 | else if (!asus_wmi_evaluate_method(ASUS_WMI_METHODID_DSTS2, 0, 0, NULL)) | 1470 | else |
1471 | asus->dsts_id = ASUS_WMI_METHODID_DSTS2; | 1471 | asus->dsts_id = ASUS_WMI_METHODID_DSTS2; |
1472 | 1472 | ||
1473 | if (!asus->dsts_id) { | ||
1474 | pr_err("Can't find DSTS"); | ||
1475 | return -ENODEV; | ||
1476 | } | ||
1477 | |||
1478 | /* CWAP allow to define the behavior of the Fn+F2 key, | 1473 | /* CWAP allow to define the behavior of the Fn+F2 key, |
1479 | * this method doesn't seems to be present on Eee PCs */ | 1474 | * this method doesn't seems to be present on Eee PCs */ |
1480 | if (asus->driver->quirks->wapf >= 0) | 1475 | if (asus->driver->quirks->wapf >= 0) |