diff options
-rw-r--r-- | drivers/platform/x86/asus-laptop.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index db657bbeec90..23449508d86b 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c | |||
@@ -516,7 +516,17 @@ static ssize_t show_infos(struct device *dev, | |||
516 | */ | 516 | */ |
517 | rv = acpi_evaluate_integer(hotk->handle, "SFUN", NULL, &temp); | 517 | rv = acpi_evaluate_integer(hotk->handle, "SFUN", NULL, &temp); |
518 | if (!ACPI_FAILURE(rv)) | 518 | if (!ACPI_FAILURE(rv)) |
519 | len += sprintf(page + len, "SFUN value : 0x%04x\n", | 519 | len += sprintf(page + len, "SFUN value : %#x\n", |
520 | (uint) temp); | ||
521 | /* | ||
522 | * The HWRS method return informations about the hardware. | ||
523 | * 0x80 bit is for WLAN, 0x100 for Bluetooth. | ||
524 | * The significance of others is yet to be found. | ||
525 | * If we don't find the method, we assume the device are present. | ||
526 | */ | ||
527 | rv = acpi_evaluate_integer(hotk->handle, "HRWS", NULL, &temp); | ||
528 | if (!ACPI_FAILURE(rv)) | ||
529 | len += sprintf(page + len, "HRWS value : %#x\n", | ||
520 | (uint) temp); | 530 | (uint) temp); |
521 | /* | 531 | /* |
522 | * Another value for userspace: the ASYM method returns 0x02 for | 532 | * Another value for userspace: the ASYM method returns 0x02 for |
@@ -527,7 +537,7 @@ static ssize_t show_infos(struct device *dev, | |||
527 | */ | 537 | */ |
528 | rv = acpi_evaluate_integer(hotk->handle, "ASYM", NULL, &temp); | 538 | rv = acpi_evaluate_integer(hotk->handle, "ASYM", NULL, &temp); |
529 | if (!ACPI_FAILURE(rv)) | 539 | if (!ACPI_FAILURE(rv)) |
530 | len += sprintf(page + len, "ASYM value : 0x%04x\n", | 540 | len += sprintf(page + len, "ASYM value : %#x\n", |
531 | (uint) temp); | 541 | (uint) temp); |
532 | if (asus_info) { | 542 | if (asus_info) { |
533 | snprintf(buf, 16, "%d", asus_info->length); | 543 | snprintf(buf, 16, "%d", asus_info->length); |