[U-Boot,4/4] power: axp818: Fix typo in axp_set_dldo

Message ID 20190209133957.12713-5-megous@megous.com
State Changes Requested
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series
  • Random small sunxi fixes
Related show

Commit Message

Ondřej Jirman Feb. 9, 2019, 1:39 p.m.
From: Ondrej Jirman <megous@megous.com>

Signed-off-by: Ondřej Jirman <megous@megous.com>
---
 drivers/power/axp818.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jagan Teki Feb. 13, 2019, 5:01 p.m. | #1
On Sat, Feb 9, 2019 at 7:59 PM <megous@megous.com> wrote:
>

Add commit message, it look some fix of using DLDO1 instead of ELDO1

Patch

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;