aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-07-18 11:06:33 -0400
committerMark Brown <broonie@linaro.org>2013-07-18 11:06:33 -0400
commit6c918d220925eeeca75b67e896eabffd061cd128 (patch)
tree9944f650ef069eb4ea672ca1eac56363702d4515
parenta56d66a2f01b172bc00d73b0b0392423c8aaae19 (diff)
regulator: core: Ensure selector is mapped
Clearly the testing only covered the bottom range. Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--drivers/regulator/core.c2
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,
2446 return ret; 2446 return ret;
2447 } 2447 }
2448 2448
2449 ret += range->min_sel;
2450
2449 break; 2451 break;
2450 } 2452 }
2451 2453