Skip to content

Commit

Permalink
leds: qpnp-vibrator: Do not reset the play duration to '0'
Browse files Browse the repository at this point in the history
Currently vibrator play duration is reset to '0' during the
'activate' operation. Due to this the vibrator does not play
for the subsequent 'activate' operations. Fix it.

CRs-Fixed: 2357595
Change-Id: I96a4f7616d21662affc76bb3e1a4955040f8813d
Signed-off-by: Kiran Gunda <[email protected]>
  • Loading branch information
I-n-o-k committed Dec 3, 2018
1 parent 37b2d1c commit 0c3dcec
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/leds/leds-qpnp-vibrator.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ static ssize_t qpnp_vib_set_activate(struct device *dev,
(vib->vib_play_ms % 1000) * 1000000),
HRTIMER_MODE_REL);
}
vib->vib_play_ms = 0;
mutex_unlock(&vib->lock);
schedule_work(&vib->work);

Expand Down

0 comments on commit 0c3dcec

Please sign in to comment.