Skip to content

Commit

Permalink
platform/x86: peaq-wmi: Evaluate wmi method with instance number 0x0
Browse files Browse the repository at this point in the history
According to Hans de Goede, WMI interface of thh peaq-wmi module has 10
instances but corresponding ACPI WMBC method does not check Arg0 (instance
number) at all. Therefore evaluate WMI method with first instance number
(0x0) instead of second (0x1).

Signed-off-by: Pali Rohár <[email protected]>
Cc: Hans de Goede <[email protected]>
Acked-by: Hans de Goede <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
  • Loading branch information
pali authored and andy-shev committed Aug 13, 2017
1 parent f85a43b commit 2cf7bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/peaq-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static void peaq_wmi_poll(struct input_polled_dev *dev)
struct acpi_buffer input = { sizeof(dummy), &dummy };
struct acpi_buffer output = { sizeof(obj), &obj };

status = wmi_evaluate_method(PEAQ_DOLBY_BUTTON_GUID, 1,
status = wmi_evaluate_method(PEAQ_DOLBY_BUTTON_GUID, 0,
PEAQ_DOLBY_BUTTON_METHOD_ID,
&input, &output);
if (ACPI_FAILURE(status))
Expand Down

0 comments on commit 2cf7bde

Please sign in to comment.