platform/x86: asus-wmi: Fix keyboard brightness cannot be set to 0
[sfrench/cifs-2.6.git] / drivers / platform / x86 / asus-wmi.c
index 469f1a85271913793a0e6363a23e01f55ebc010e..43bb15e055292395ab659524898663c09d08d8f2 100644 (file)
@@ -520,13 +520,7 @@ static void kbd_led_update(struct asus_wmi *asus)
 {
        int ctrl_param = 0;
 
-       /*
-        * bits 0-2: level
-        * bit 7: light on/off
-        */
-       if (asus->kbd_led_wk > 0)
-               ctrl_param = 0x80 | (asus->kbd_led_wk & 0x7F);
-
+       ctrl_param = 0x80 | (asus->kbd_led_wk & 0x7F);
        asus_wmi_set_devstate(ASUS_WMI_DEVID_KBD_BACKLIGHT, ctrl_param, NULL);
 }