linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input: misc: max77693-haptic - fix active state check in disable()
@ 2014-10-15  3:16 Jaewon Kim
  2014-10-15  4:17 ` Chanwoo Choi
  0 siblings, 1 reply; 4+ messages in thread
From: Jaewon Kim @ 2014-10-15  3:16 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: Chanwoo Choi, Jaewon Kim, linux-input

In order to avoid duplicated execution, max77693_haptic_disable()
check disable state. But it was reversed. this patch fix it.

Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
---
 drivers/input/misc/max77693-haptic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/misc/max77693-haptic.c b/drivers/input/misc/max77693-haptic.c
index d605db4..7b1fde9 100644
--- 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);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-16 21:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-15  3:16 [PATCH] Input: misc: max77693-haptic - fix active state check in disable() Jaewon Kim
2014-10-15  4:17 ` Chanwoo Choi
2014-10-15  4:34   ` Jaewon Kim
2014-10-16 21:00     ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).