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

Commit d2c8b93b authored by Tirupathi Reddy's avatar Tirupathi Reddy
Browse files

leds: qpnp-vibrator-ldo: disable vibrator in suspend path



Disable vibrator in suspend path as the stop timer is already
getting canceled and the vibrator may stay enabled.

Change-Id: Ib9bb692e974c59cb2c89c85690caee5bfaf7b4e4
Signed-off-by: default avatarTirupathi Reddy <tirupath@codeaurora.org>
parent 63098a4e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -430,6 +430,7 @@ static int qpnp_vibrator_ldo_suspend(struct device *dev)
	}
	hrtimer_cancel(&chip->stop_timer);
	cancel_work_sync(&chip->vib_work);
	qpnp_vib_ldo_enable(chip, false);
	mutex_unlock(&chip->lock);

	return 0;