Commit 135d916f authored by Jaewon Kim's avatar Jaewon Kim Committed by Dmitry Torokhov

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: default avatarJaewon Kim <jaewon02.kim@samsung.com>
Reviewed-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 4d544e3b
...@@ -152,7 +152,7 @@ static void max77693_haptic_disable(struct max77693_haptic *haptic) ...@@ -152,7 +152,7 @@ static void max77693_haptic_disable(struct max77693_haptic *haptic)
{ {
int error; int error;
if (haptic->enabled) if (!haptic->enabled)
return; return;
error = max77693_haptic_configure(haptic, false); error = max77693_haptic_configure(haptic, false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment