Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 272c6ea1 authored by Kiran Gunda's avatar Kiran Gunda Committed by Gerrit - the friendly Code Review server
Browse files

leds: qpnp-vibrator: Do not reset the play duration to '0'



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: default avatarKiran Gunda <kgunda@codeaurora.org>
parent 45cef796
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -398,7 +398,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);