]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: axp20x: Fix LDO4 linear voltage range
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 26 Apr 2016 14:00:51 +0000 (16:00 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 26 Apr 2016 14:57:45 +0000 (15:57 +0100)
commit8cb83463b3e6f2438d59e1979aa6538695be1d5d
tree5e33b3da31b2018aef2c45ad52b703fd33b602d4
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
regulator: axp20x: Fix LDO4 linear voltage range

The current linear voltage range for the LDO4 regulator found in the APX20X
PMICs assumes that the voltage is linear between 2.5 and 3.1V.

However, the PMIC can output up to 3.3V on that regulator by skipping the
2.6V and 2.9V steps.

Fix the ranges to read and set the proper voltages.

Fixes: a852829b2b38 ("regulator: axp20x: Use linear voltage ranges for AXP20X LDO4")
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c