regulator: qcom_smd: Avoid overlapping linear voltage ranges
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 11 Jul 2016 21:50:09 +0000 (14:50 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 12 Jul 2016 09:01:36 +0000 (10:01 +0100)
commitb7a8524cfae0b3bde80be38c171e4ecac8ba527e
treebbf3361ebca7655121463e7cc3f6da9196911ecd
parent43160ffd12c8d1d331362362eea3c70e04b6f9c4
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>
drivers/regulator/qcom_smd-regulator.c
This page took 0.025601 seconds and 5 git commands to generate.