Skip to content

Commit

Permalink
Input: max77693-haptic - fix state check in imax77693_haptic_disable()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jaewon Kim authored and Dmitry Torokhov committed Oct 16, 2014
1 parent 4d544e3 commit 135d916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/misc/max77693-haptic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 135d916

Please sign in to comment.