Unverified Commit ab97800e authored by Claudiu Beznea's avatar Claudiu Beznea Committed by Mark Brown
Browse files

regulator: core: do not continue if selector match

parent 2f595d08
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4037,6 +4037,9 @@ int regulator_set_voltage_time(struct regulator *regulator,
		if (i < rdev->desc->linear_min_sel)
			continue;

		if (old_sel >= 0 && new_sel >= 0)
			break;

		voltage = regulator_list_voltage(regulator, i);
		if (voltage < 0)
			return -EINVAL;