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

Commit 1eefcd7d authored by Tirupathi Reddy's avatar Tirupathi Reddy
Browse files

regulator: core: Fix voltage change propagations to supply regulators



Some regulators support get_voltage and some support get_voltage_sel
operations. Do voltage change propagation only when the current
regulator has a minimum dropout voltage specified or if the current
regulator lacks both get_voltage and get_voltage_sel operations.

CRs-Fixed: 2018399
Change-Id: I24cc880d6a61c2cb489897d39a1b63199749c98d
Signed-off-by: default avatarTirupathi Reddy <tirupath@codeaurora.org>
parent 788b90b3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2980,7 +2980,8 @@ static int regulator_set_voltage_unlocked(struct regulator *regulator,
		goto out2;

	if (rdev->supply && (rdev->desc->min_dropout_uV ||
				!rdev->desc->ops->get_voltage)) {
				!(rdev->desc->ops->get_voltage ||
					rdev->desc->ops->get_voltage_sel))) {
		int current_supply_uV;
		int selector;