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

Commit 9656e5af authored by Anirudh Ghayal's avatar Anirudh Ghayal
Browse files

leds: qpnp-wled: Fix the check to disable AUTO_PFM



Check for PMI8998 subtype and the revision before disabling
AUTO_PFM.

Change-Id: Ic024dbac18b5c23f1af0f5d2a673634cb5293cbd
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent aefaae06
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2135,7 +2135,8 @@ static int qpnp_wled_parse_dt(struct qpnp_wled *wled)
	if (wled->pmic_rev_id->pmic_subtype == PMI8998_SUBTYPE ||
		wled->pmic_rev_id->pmic_subtype == PM660L_SUBTYPE) {

		if (wled->pmic_rev_id->rev4 == PMI8998_V2P0_REV4)
		if (wled->pmic_rev_id->pmic_subtype == PMI8998_SUBTYPE &&
				wled->pmic_rev_id->rev4 == PMI8998_V2P0_REV4)
			wled->lcd_auto_pfm_en = false;
		else
			wled->lcd_auto_pfm_en = true;