dell-laptop: fix rfkill conversion
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 15 Jun 2009 14:26:47 +0000 (16:26 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Jun 2009 19:05:58 +0000 (15:05 -0400)
A polarity error snuck into the rfkill rewrite's dell-laptop
conversion, fix it.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Tested-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/platform/x86/dell-laptop.c

index 2faf0e1..74909c4 100644 (file)
@@ -177,7 +177,7 @@ dell_send_request(struct calling_interface_buffer *buffer, int class,
 static int dell_rfkill_set(void *data, bool blocked)
 {
        struct calling_interface_buffer buffer;
-       int disable = blocked ? 0 : 1;
+       int disable = blocked ? 1 : 0;
        unsigned long radio = (unsigned long)data;
 
        memset(&buffer, 0, sizeof(struct calling_interface_buffer));