regulator: s2mps11: Fix buck7 and buck8 wrong voltages
authorKrzysztof Kozlowski <krzk@kernel.org>
Sat, 29 Jun 2019 11:44:45 +0000 (13:44 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 2 Jul 2019 11:43:05 +0000 (12:43 +0100)
commit16da0eb5ab6ef2dd1d33431199126e63db9997cc
tree7235b709545e3bba94b959fbbd785ac9863b88de
parent70ca117b02f3b1c8830fe95e4e3dea2937038e11
regulator: s2mps11: Fix buck7 and buck8 wrong voltages

On S2MPS11 device, the buck7 and buck8 regulator voltages start at 750
mV, not 600 mV.  Using wrong minimal value caused shifting of these
regulator values by 150 mV (e.g. buck7 usually configured to v1.35 V was
reported as 1.2 V).

On most of the boards these regulators are left in default state so this
was only affecting reported voltage.  However if any driver wanted to
change them, then effectively it would set voltage 150 mV higher than
intended.

Cc: <stable@vger.kernel.org>
Fixes: cb74685ecb39 ("regulator: s2mps11: Add samsung s2mps11 regulator driver")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/s2mps11.c