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)
commit8d4d5c3a7c25e69075e60e5e70c1e05c205aef89
tree5e33b3da31b2018aef2c45ad52b703fd33b602d4
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
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: 13d57e64352a ("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