diff options
author | Mario Limonciello <mario.limonciello@dell.com> | 2017-06-23 17:35:21 +0300 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-06-28 19:01:36 +0300 |
commit | 71596f5b0e4a0071394d425d7cbcd2bfca655c61 (patch) | |
tree | da96976381e62b8f06257ba7437488f76513d3ac /drivers/platform/x86/dell-wmi-led.c | |
parent | c0e4aa78716401e8d7d5434b69bbf6596b55a936 (diff) | |
download | linux-71596f5b0e4a0071394d425d7cbcd2bfca655c61.tar.xz |
platform/x86: dell-wmi-led: Adjust instance of wmi_evaluate_method calls to 0
Pali recently noticed that WMI instances are zero indexed.
The only reason that these calls all worked properly is because the ASL
didn't verify the instance number.
Signed-off-by: Louis Davis <louis.davis@dell.com>
Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'drivers/platform/x86/dell-wmi-led.c')
-rw-r--r-- | drivers/platform/x86/dell-wmi-led.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/dell-wmi-led.c b/drivers/platform/x86/dell-wmi-led.c index a0c7e99530ef..5bedaf7f0633 100644 --- a/drivers/platform/x86/dell-wmi-led.c +++ b/drivers/platform/x86/dell-wmi-led.c @@ -68,7 +68,7 @@ static int dell_led_perform_fn(u8 length, u8 result_code, u8 device_id, input.length = sizeof(struct bios_args); input.pointer = &args; - status = wmi_evaluate_method(DELL_LED_BIOS_GUID, 1, 1, &input, &output); + status = wmi_evaluate_method(DELL_LED_BIOS_GUID, 0, 1, &input, &output); if (ACPI_FAILURE(status)) return status; |