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

Commit aab2ad6e authored by Abinaya P's avatar Abinaya P
Browse files

msm: qpnp-haptic: cancel poll timer before enqueuing new timer request



When multiple requests come for enabling haptics and the actutator type
is LRA and auto resonance error detection is enabled, then apart from
cancelling the haptics timer, also cancel the previous instance of the
auto resonance timer if it exists to avoid enqueuing the same timer again.

Also, re-organise the code to access the timers only when the actuator
type is LRA.

Change-Id: I1cd384152b2ce691c1882356dd5e74fd2bfdd9ee
Signed-off-by: default avatarAbinaya P <abinayap@codeaurora.org>
parent 90c540cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment