summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-06-29 10:53:53 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-07-07 12:55:27 -0400
commit76d8b64e536362e16e38ee1c279c965ebfe094cc (patch)
tree47a78c4f9e3b899e8b378c38658eec83b3b89a6c /drivers/platform
parent59615b5f9d1323898ca94e88e595b5b04115076a (diff)
downloadblackbird-op-linux-76d8b64e536362e16e38ee1c279c965ebfe094cc.tar.gz
blackbird-op-linux-76d8b64e536362e16e38ee1c279c965ebfe094cc.zip
hp-wmi: fix rfkill bug
Fix the third (I think) polarity error I accidentally introduced in the rfkill rewrite to make wireless work again on (certain?) HP laptops. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Tested-by: Maciej Rutecki <maciej.rutecki@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/hp-wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c
index 4ac2311c00af..ca508564a181 100644
--- a/drivers/platform/x86/hp-wmi.c
+++ b/drivers/platform/x86/hp-wmi.c
@@ -171,7 +171,7 @@ static int hp_wmi_tablet_state(void)
static int hp_wmi_set_block(void *data, bool blocked)
{
unsigned long b = (unsigned long) data;
- int query = BIT(b + 8) | ((!!blocked) << b);
+ int query = BIT(b + 8) | ((!blocked) << b);
return hp_wmi_perform_query(HPWMI_WIRELESS_QUERY, 1, query);
}
OpenPOWER on IntegriCloud