projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d544e3
)
Input: max77693-haptic - fix state check in imax77693_haptic_disable()
author
Jaewon Kim
<
[email protected]
>
Thu, 16 Oct 2014 20:56:52 +0000
(13:56 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Thu, 16 Oct 2014 21:05:39 +0000
(14:05 -0700)
The check to see whether the device is already disabled in
max77693_haptic_disable() was inversed, this change corrects it.
Signed-off-by: Jaewon Kim <
[email protected]
>
Reviewed-by: Chanwoo Choi <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/misc/max77693-haptic.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/max77693-haptic.c
b/drivers/input/misc/max77693-haptic.c
index d605db4d2f397f4a5abfa8862936775c7c7b07d3..7b1fde93799ee771b638cd128fe3908a07ec82ef 100644
(file)
--- a/
drivers/input/misc/max77693-haptic.c
+++ b/
drivers/input/misc/max77693-haptic.c
@@
-152,7
+152,7
@@
static void max77693_haptic_disable(struct max77693_haptic *haptic)
{
int error;
- if (haptic->enabled)
+ if (
!
haptic->enabled)
return;
error = max77693_haptic_configure(haptic, false);