diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-06-29 08:53:53 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-07 16:55:27 (GMT) |
commit | 76d8b64e536362e16e38ee1c279c965ebfe094cc (patch) | |
tree | 47a78c4f9e3b899e8b378c38658eec83b3b89a6c /drivers/platform | |
parent | 59615b5f9d1323898ca94e88e595b5b04115076a (diff) | |
download | linux-fsl-qoriq-76d8b64e536362e16e38ee1c279c965ebfe094cc.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/hp-wmi.c b/drivers/platform/x86/hp-wmi.c index 4ac2311..ca50856 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); } |