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:
Abinaya P <abinayap@codeaurora.org>
Loading
Please register or sign in to comment