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

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
...@@ -143,10 +143,12 @@ int mc13xxx_fixed_regulator_set_voltage(struct regulator_dev *rdev, int min_uV, ...@@ -143,10 +143,12 @@ int mc13xxx_fixed_regulator_set_voltage(struct regulator_dev *rdev, int min_uV,
__func__, id, min_uV, max_uV); __func__, id, min_uV, max_uV);
if (min_uV <= rdev->desc->volt_table[0] && 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; return 0;
else } else {
return -EINVAL; return -EINVAL;
}
} }
EXPORT_SYMBOL_GPL(mc13xxx_fixed_regulator_set_voltage); EXPORT_SYMBOL_GPL(mc13xxx_fixed_regulator_set_voltage);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment