Commit 4609d029 authored by Carlos Corbacho's avatar Carlos Corbacho Committed by Len Brown

acer-wmi: Fix backlight on AMW0 (V1) laptops

There is some leftover cruft from the old quirk infrastructure that causes
us to be unable to set the backlight on older laptops.
Signed-off-by: default avatarCarlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent b0136829
...@@ -428,11 +428,9 @@ static acpi_status AMW0_set_u32(u32 value, u32 cap, struct wmi_interface *iface) ...@@ -428,11 +428,9 @@ static acpi_status AMW0_set_u32(u32 value, u32 cap, struct wmi_interface *iface)
if (value > max_brightness) if (value > max_brightness)
return AE_BAD_PARAMETER; return AE_BAD_PARAMETER;
switch (quirks->brightness) { switch (quirks->brightness) {
case 1:
return ec_write(0x83, value);
default: default:
return AE_BAD_ADDRESS; return ec_write(0x83, value);
break; break;
} }
default: default:
return AE_BAD_ADDRESS; return AE_BAD_ADDRESS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment