Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7a4e99d authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

regulator: qpnp-labibb-regulator: fix the base address usage



Currently, the base address of LAB module is being used for
configuring PD_CTL register of IBB module. Fix it.

Change-Id: I34edb86bc3f68cb857a4ae8ce69158991f7082c8
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 8e6fdb81
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1303,7 +1303,7 @@ int qpnp_ibb_set_pd_strength(struct regulator *regulator, u32 strength)
	labibb = regulator_get_drvdata(regulator);

	mutex_lock(&(labibb->ibb_vreg.ibb_mutex));
	rc = qpnp_labibb_masked_write(labibb, labibb->lab_base +
	rc = qpnp_labibb_masked_write(labibb, labibb->ibb_base +
				REG_IBB_PD_CTL,
				IBB_PD_CTL_STRENGTH_MASK,
				val,
@@ -1337,7 +1337,7 @@ int qpnp_ibb_pd_enable_ctl(struct regulator *regulator, bool enable)
	labibb = regulator_get_drvdata(regulator);

	mutex_lock(&(labibb->ibb_vreg.ibb_mutex));
	rc = qpnp_labibb_masked_write(labibb, labibb->lab_base +
	rc = qpnp_labibb_masked_write(labibb, labibb->ibb_base +
				REG_IBB_PD_CTL,
				IBB_PD_CTL_EN_MASK,
				val,