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

Commit ff68805c authored by Fenglin Wu's avatar Fenglin Wu
Browse files

pinctrl: qcom: spmi-mpp: Correct DTEST rail calculation



The DTEST1 rail selection value in the MODE_CTL register is not 0. Use
the proper offset value when calculating the value to write into the
MODE_CTL register.

Change-Id: Ia09aa072116d244abdd7ad0d92cc55e0aeba8efc
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent f0629e4f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -780,7 +780,7 @@ static int pmic_mpp_populate(struct pmic_mpp_state *state,
	sel &= PMIC_MPP_REG_MODE_FUNCTION_MASK;

	if (sel >= PMIC_MPP_SELECTOR_DTEST_FIRST)
		pad->dtest = sel + 1;
		pad->dtest = sel - PMIC_MPP_SELECTOR_DTEST_FIRST + 1;
	else if (sel == PMIC_MPP_SELECTOR_PAIRED)
		pad->paired = true;