diff options
author | Jernej Skrabec <jernej.skrabec@siol.net> | 2019-07-13 11:07:17 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-07-16 19:14:14 +0100 |
commit | 8f46e22b5ac692b48d04bb722547ca17b66dda02 (patch) | |
tree | 9eea09c4173b151d705b9d2fa8ed01b8cf474ce1 /tools/power | |
parent | 1ef55fed9219963359a7b3bc7edca8517c6e45ac (diff) | |
download | linux-8f46e22b5ac692b48d04bb722547ca17b66dda02.tar.bz2 |
regulator: axp20x: fix DCDC5 and DCDC6 for AXP803
Refactoring of axp20x driver introduced a bug in AXP803's DCDC6
regulator definition. AXP803_DCDC6_1120mV_STEPS was obtained by
subtracting 0x47 and 0x33. This should be 0x14 (hex) and not 14
(dec).
Refactoring also carried over a bug in DCDC5 regulator definition.
Number of possible voltages must be for 1 bigger than maximum valid
voltage index, because 0 is also valid and it means lowest voltage.
Fixes: 1dbe0ccb0631 ("regulator: axp20x-regulator: add support for AXP803")
Fixes: db4a555f7c4c ("regulator: axp20x: use defines for masks")
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Link: https://lore.kernel.org/r/20190713090717.347-3-jernej.skrabec@siol.net
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/power')
0 files changed, 0 insertions, 0 deletions