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

Commit 1bcb8a57 authored by Nicholas Troast's avatar Nicholas Troast Committed by Harry Yang
Browse files

smb138x-charger: enable connector temp thermal regulation source



The connector thermal regulation source must be enabled in order to
receive temperature-change interrupts. Enable it.

Change-Id: I9bb2d3eaf3bba1b1f40bfd724060f2fa437235b5
Signed-off-by: default avatarNicholas Troast <ntroast@codeaurora.org>
parent ae0ea54a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -800,6 +800,14 @@ static int smb138x_init_slave_hw(struct smb138x *chip)
		pr_err("Couldn't set connector temp threshold3 rc=%d\n", rc);
		return rc;
	}

	rc = smblib_write(chg, THERMREG_SRC_CFG_REG,
						THERMREG_SKIN_ADC_SRC_EN_BIT);
	if (rc < 0) {
		pr_err("Couldn't enable connector thermreg source rc=%d\n", rc);
		return rc;
	}

	return 0;
}