diff options
author | Ondrej Jirman <megous@megous.com> | 2019-02-13 18:51:05 +0100 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2019-03-08 11:36:59 +0530 |
commit | b24db49cc2be5c0287f8ee5257b84f98323048c4 (patch) | |
tree | 7c940ff4d1da0272a3ff3146434b0429ba8097e1 /drivers/power | |
parent | f18b7b2798cc37b613b5d3dda2e1461857a913b8 (diff) | |
download | u-boot-b24db49cc2be5c0287f8ee5257b84f98323048c4.tar.gz u-boot-b24db49cc2be5c0287f8ee5257b84f98323048c4.tar.bz2 u-boot-b24db49cc2be5c0287f8ee5257b84f98323048c4.zip |
power: axp818: Fix typo in axp_set_dldo
Fix typo in axp_set_dldo() so that it correctly uses AXP818_DLDO1_CTRL
register to configure the voltage instead of setting AXP818_ELDO1_CTRL
register which is obviously incorrect.
Signed-off-by: Ondřej Jirman <megous@megous.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/axp818.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/axp818.c b/drivers/power/axp818.c index c737da1180..834919ddd4 100644 --- a/drivers/power/axp818.c +++ b/drivers/power/axp818.c @@ -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; |