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

Commit fb7e4c49 authored by Abinaya P's avatar Abinaya P Committed by Matt Wagantall
Browse files

leds: leds-qpnp-wled: reset WLED enable register in wled probe



Reset WLED enable register in probe so that WLED rail consumes the
same current before and after the suspend.

Change-Id: Ib0a96407d730a8e6349855a9559d5d7686326da6
Signed-off-by: default avatarAbinaya P <abinayap@codeaurora.org>
parent 45a252a3
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -1569,6 +1569,12 @@ static int qpnp_wled_probe(struct spmi_device *spmi)


	gwled = wled;
	gwled = wled;


	rc = qpnp_wled_module_en(wled, wled->ctrl_base, false);
	if (rc) {
		dev_err(&spmi->dev, "wled disable failed(%d)\n", rc);
		return rc;
	}

	return 0;
	return 0;


sysfs_fail:
sysfs_fail: