projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c244fa
)
net: rfkill: gpio: Fix clock status
author
Loic Poulain
<loic.poulain@intel.com>
Tue, 16 Sep 2014 12:53:58 +0000
(14:53 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 22 Sep 2014 20:02:15 +0000
(16:02 -0400)
Clock is disabled when the device is blocked.
So, clock_enabled is the logical negation of "blocked".
Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/rfkill/rfkill-gpio.c
patch
|
blob
|
blame
|
history
diff --git
a/net/rfkill/rfkill-gpio.c
b/net/rfkill/rfkill-gpio.c
index 5fa54dd78e25d6acf167cec1cfa7d2e3f0f008a2..0f62326c0f5ea7581f996441da183da1e7899bfb 100644
(file)
--- a/
net/rfkill/rfkill-gpio.c
+++ b/
net/rfkill/rfkill-gpio.c
@@
-54,7
+54,7
@@
static int rfkill_gpio_set_power(void *data, bool blocked)
if (blocked && !IS_ERR(rfkill->clk) && rfkill->clk_enabled)
clk_disable(rfkill->clk);
- rfkill->clk_enabled = blocked;
+ rfkill->clk_enabled =
!
blocked;
return 0;
}