From: megous at megous.com Date: Wed, 13 Feb 2019 18:51:05 +0100 Subject: [U-Boot] [PATCH v2] power: axp818: Fix typo in axp_set_dldo Message-ID: <20190213175105.4679-1-megous@megous.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de From: Ondrej Jirman 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=C5=99ej Jirman --- 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(-) 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 =3D axp818_mvolt_to_cfg(mvolt, 700, 3300, 100); if (dldo_num =3D=3D 2 && mvolt > 3300) cfg +=3D 1 + axp818_mvolt_to_cfg(mvolt, 3400, 4200, 200); - ret =3D pmic_bus_write(AXP818_ELDO1_CTRL + (dldo_num - 1), cfg); + ret =3D pmic_bus_write(AXP818_DLDO1_CTRL + (dldo_num - 1), cfg); if (ret) return ret; =20 --=20 2.20.1