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>
This commit is contained in:
Jaewon Kim 2014-10-16 13:56:52 -07:00 committed by Dmitry Torokhov
parent 4d544e3bdb
commit 135d916fe8
1 changed files with 1 additions and 1 deletions

View File

@ -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);