From: Pali Rohár Date: Sat, 12 Aug 2017 07:44:17 +0000 (+0200) Subject: platform/x86: peaq-wmi: Evaluate wmi method with instance number 0x0 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2cf7bdec2db81730610edb2631252b39375024a0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git platform/x86: peaq-wmi: Evaluate wmi method with instance number 0x0 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 Cc: Hans de Goede Acked-by: Hans de Goede Signed-off-by: Andy Shevchenko --- diff --git a/drivers/platform/x86/peaq-wmi.c b/drivers/platform/x86/peaq-wmi.c index c68bd76954fd..bc98ef95514a 100644 --- a/drivers/platform/x86/peaq-wmi.c +++ b/drivers/platform/x86/peaq-wmi.c @@ -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))