]> git.karo-electronics.de Git - linux-beck.git/commitdiff
acer-wmi: fix rfkill conversion
authorTroy Moure <twmoure@szypr.net>
Wed, 17 Jun 2009 10:51:56 +0000 (11:51 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Jun 2009 15:50:18 +0000 (11:50 -0400)
"rfkill: rewrite" incorrectly reversed
the meaning of 'state' in acer_rfkill_update() when it changed
rfkill_force_state() to rfkill_set_sw_state().  Fix it.

Signed-off-by: Troy Moure <twmoure@szypr.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/platform/x86/acer-wmi.c

index 09a503e5da6a13a3f3c0138dabbe33ec5cdc691a..be2fd6f916390af3b0de060b5726bc7cec676974 100644 (file)
@@ -958,12 +958,12 @@ static void acer_rfkill_update(struct work_struct *ignored)
 
        status = get_u32(&state, ACER_CAP_WIRELESS);
        if (ACPI_SUCCESS(status))
-               rfkill_set_sw_state(wireless_rfkill, !!state);
+               rfkill_set_sw_state(wireless_rfkill, !state);
 
        if (has_cap(ACER_CAP_BLUETOOTH)) {
                status = get_u32(&state, ACER_CAP_BLUETOOTH);
                if (ACPI_SUCCESS(status))
-                       rfkill_set_sw_state(bluetooth_rfkill, !!state);
+                       rfkill_set_sw_state(bluetooth_rfkill, !state);
        }
 
        schedule_delayed_work(&acer_rfkill_work, round_jiffies_relative(HZ));