Skip to contentSkip to conversation

power: axp818: Fix typo in axp_set_dldo

PATCH New megous at megous.com 2 participants 2 messages Feb 13, 2019 – Mar 8, 2019 X-powers multifunction PMIC device drivers

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 power: axp818: Fix typo in axp_set_dldo

From: Ondrej Jirman <[email protected]>

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.

---
This was previously sent as a part of other series of patches, but it's unrelated to the rest of the patches, so I'm resending it individually.

v2:
- improved description

 drivers/power/axp818.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/axp818.c +1 -1
index c737da1180..834919ddd4 100644
@@ -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;
 
Signature · 1 line
2.20.1
#1 lore raw

PATCH v2 1/1 power: axp818: Fix typo in axp_set_dldo

Quoted 9 lines · On Wed, Feb 13, 2019 at 11:21 PM <[email protected]> wrote:

From: Ondrej Jirman <[email protected]>

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.

---

Applied to u-boot-sunxi/master