mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
regulator: core: Ensure selector is mapped
Clearly the testing only covered the bottom range. Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
a56d66a2f0
commit
6c918d2209
1 changed files with 2 additions and 0 deletions
|
@ -2446,6 +2446,8 @@ int regulator_map_voltage_linear_range(struct regulator_dev *rdev,
|
|||
return ret;
|
||||
}
|
||||
|
||||
ret += range->min_sel;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue