1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-08-31 16:22:36 +02:00

power: axp818: Fix typo in axp_set_dldo

Signed-off-by: Ondřej Jirman <megous@megous.com>
This commit is contained in:
Ondrej Jirman
2017-04-30 15:48:12 +02:00
parent 2fda5ece3c
commit 892c6f44c0

View File

@@ -161,7 +161,7 @@ int axp_set_dldo(int dldo_num, unsigned int mvolt)
cfg = axp818_mvolt_to_cfg(mvolt, 700, 3300, 100);
if (dldo_num == 2 && mvolt > 3300)
cfg += 1 + axp818_mvolt_to_cfg(mvolt, 3400, 4200, 200);
ret = pmic_bus_write(AXP818_ELDO1_CTRL + (dldo_num - 1), cfg);
ret = pmic_bus_write(AXP818_DLDO1_CTRL + (dldo_num - 1), cfg);
if (ret)
return ret;