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

Commit 13407ea8 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: mc13xxx: Populate selector from mc13xxx_fixed_regulator_set_voltage



This was missing until now and the underlying
_regulator_do_set_voltage is using this value when calling list_voltage.

Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent ad46ed14
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -143,11 +143,13 @@ int mc13xxx_fixed_regulator_set_voltage(struct regulator_dev *rdev, int min_uV,
		__func__, id, min_uV, max_uV);

	if (min_uV <= rdev->desc->volt_table[0] &&
	    rdev->desc->volt_table[0] <= max_uV)
	    rdev->desc->volt_table[0] <= max_uV) {
		*selector = 0;
		return 0;
	else
	} else {
		return -EINVAL;
	}
}
EXPORT_SYMBOL_GPL(mc13xxx_fixed_regulator_set_voltage);

int mc13xxx_fixed_regulator_get_voltage(struct regulator_dev *rdev)