acer-wmi: Fix backlight on AMW0 (V1) laptops
authorCarlos Corbacho <carlos@strangeworlds.co.uk>
Fri, 8 Feb 2008 23:51:49 +0000 (23:51 +0000)
committerLen Brown <len.brown@intel.com>
Sat, 9 Feb 2008 08:29:33 +0000 (03:29 -0500)
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: Carlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/acer-wmi.c

index a4d6775042506a66d87bb3dd80dcf20a190b7f43..d7aea93081f26f98310ebbb1db6a4e29e1ed7ffb 100644 (file)
@@ -428,11 +428,9 @@ static acpi_status AMW0_set_u32(u32 value, u32 cap, struct wmi_interface *iface)
                if (value > max_brightness)
                        return AE_BAD_PARAMETER;
                switch (quirks->brightness) {
-               case 1:
-                       return ec_write(0x83, value);
                default:
-                       return AE_BAD_ADDRESS;
-               break;
+                       return ec_write(0x83, value);
+                       break;
                }
        default:
                return AE_BAD_ADDRESS;