diff options
author | Jaewon Kim <jaewon02.kim@samsung.com> | 2014-10-16 16:56:52 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-10-16 17:05:39 -0400 |
commit | 135d916fe8a5fa25ad87a62844acfd3dbb1c9fb9 (patch) | |
tree | a9bce877bb0391388d5479e53b153167c7a67806 /drivers/input/misc | |
parent | 4d544e3bdb12f8e48f61e7f2270b253a48c69e00 (diff) |
Input: max77693-haptic - fix state check in imax77693_haptic_disable()
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 <jaewon02.kim@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/misc')
-rw-r--r-- | drivers/input/misc/max77693-haptic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/max77693-haptic.c b/drivers/input/misc/max77693-haptic.c index d605db4d2f39..7b1fde93799e 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) | |||
152 | { | 152 | { |
153 | int error; | 153 | int error; |
154 | 154 | ||
155 | if (haptic->enabled) | 155 | if (!haptic->enabled) |
156 | return; | 156 | return; |
157 | 157 | ||
158 | error = max77693_haptic_configure(haptic, false); | 158 | error = max77693_haptic_configure(haptic, false); |