aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/qcom_smd-regulator.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2016-07-11 14:50:09 -0700
committerMark Brown <broonie@kernel.org>2016-07-12 10:01:36 +0100
commitb7a8524cfae0b3bde80be38c171e4ecac8ba527e (patch)
treebbf3361ebca7655121463e7cc3f6da9196911ecd /drivers/regulator/qcom_smd-regulator.c
parentregulator: qcom_smd: Remove list_voltage callback for rpm_smps_ldo_ops_fixed (diff)
downloadlinux-dev-b7a8524cfae0b3bde80be38c171e4ecac8ba527e.tar.xz
linux-dev-b7a8524cfae0b3bde80be38c171e4ecac8ba527e.zip
regulator: qcom_smd: Avoid overlapping linear voltage ranges
The pm8x41_hfsmps ranges overlap. The first range is from 375000 to 1562500: 375000 + (95 * 12500) == 1562500 and the second range starts at 1550000. Interestingly, the second range ends at the correct value when it's set to be the appropriate start value, 1575000: 1575000 + ((158 - 96) * 25000) == 3125000 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Reviewed-by: Andy Gross <andy.gross@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/qcom_smd-regulator.c')
-rw-r--r--drivers/regulator/qcom_smd-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c
index 6c7fe4778793..5022fa8d10c6 100644
--- a/drivers/regulator/qcom_smd-regulator.c
+++ b/drivers/regulator/qcom_smd-regulator.c
@@ -211,7 +211,7 @@ static const struct regulator_desc pma8084_switch = {
static const struct regulator_desc pm8x41_hfsmps = {
.linear_ranges = (struct regulator_linear_range[]) {
REGULATOR_LINEAR_RANGE( 375000, 0, 95, 12500),
- REGULATOR_LINEAR_RANGE(1550000, 96, 158, 25000),
+ REGULATOR_LINEAR_RANGE(1575000, 96, 158, 25000),
},
.n_linear_ranges = 2,
.n_voltages = 159,