diff options
author | 2013-07-18 16:06:33 +0100 | |
---|---|---|
committer | 2013-07-18 16:06:33 +0100 | |
commit | 6c918d220925eeeca75b67e896eabffd061cd128 (patch) | |
tree | 9944f650ef069eb4ea672ca1eac56363702d4515 /drivers/regulator/core.c | |
parent | regulator: core: Allow fixed voltage range in multiple linear ranges (diff) | |
download | linux-6c918d220925eeeca75b67e896eabffd061cd128.tar.gz linux-6c918d220925eeeca75b67e896eabffd061cd128.tar.bz2 linux-6c918d220925eeeca75b67e896eabffd061cd128.zip |
regulator: core: Ensure selector is mapped
Clearly the testing only covered the bottom range.
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/core.c')
-rw-r--r-- | drivers/regulator/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index fd3f6e003729..42ae134797e0 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -2446,6 +2446,8 @@ int regulator_map_voltage_linear_range(struct regulator_dev *rdev, return ret; } + ret += range->min_sel; + break; } |