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

Commit 9c82f22f authored by Ke Liu's avatar Ke Liu
Browse files

regulator: qpnp-labibb-regulator: fix parsing of initial voltages



Currently, the properties read for initial voltages are not matching with
the mode (LCD/AMOLED). Fix that.

CRs-Fixed: 782656
Change-Id: Ibe803bed43d61331935fd6f5048185b8d4c54bc6
Signed-off-by: default avatarKe Liu <keliu@codeaurora.org>
parent b72d5b8c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1141,7 +1141,7 @@ static int register_qpnp_lab_regulator(struct qpnp_labibb *labibb,
					LAB_VOLTAGE_SET_MASK) *
					labibb->lab_vreg.step_size +
					labibb->lab_vreg.min_volt;
		} else if (labibb->mode == QPNP_LABIBB_AMOLED_MODE) {
		} else if (labibb->mode == QPNP_LABIBB_LCD_MODE) {
			rc = of_property_read_u32(of_node,
				"qcom,qpnp-lab-init-lcd-voltage",
				&(labibb->lab_vreg.curr_volt));
@@ -2030,7 +2030,7 @@ static int register_qpnp_ibb_regulator(struct qpnp_labibb *labibb,
				(val & IBB_VOLTAGE_SET_MASK) *
				labibb->ibb_vreg.step_size +
				labibb->ibb_vreg.min_volt;
		} else if (labibb->mode == QPNP_LABIBB_AMOLED_MODE) {
		} else if (labibb->mode == QPNP_LABIBB_LCD_MODE) {
			rc = of_property_read_u32(of_node,
				"qcom,qpnp-ibb-init-lcd-voltage",
				&(labibb->ibb_vreg.curr_volt));