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

Commit 5207dd9d authored by Guru Das Srinagesh's avatar Guru Das Srinagesh
Browse files

power: smb1390: Correct temp alert thresholds



The temperature alert levels were set to incorrect values; correct them.

Change-Id: I6e24d98a5a57f84205e4a497bbcd1e68edd45668
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent 2df7c68f
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1442,7 +1442,7 @@ static int smb1390_parse_dt(struct smb1390 *chip)
	of_property_read_u32(chip->dev->of_node, "qcom,min-ilim-ua",
			&chip->min_ilim_ua);

	chip->max_temp_alarm_degc = 110;
	chip->max_temp_alarm_degc = 105;
	of_property_read_u32(chip->dev->of_node, "qcom,max-temp-alarm-degc",
			&chip->max_temp_alarm_degc);

@@ -1540,16 +1540,16 @@ static int smb1390_init_hw(struct smb1390 *chip)
		return rc;

	switch (chip->max_temp_alarm_degc) {
	case 125:
	case 115:
		val = 0x00;
		break;
	case 95:
	case 90:
		val = 0x02;
		break;
	case 85:
	case 80:
		val = 0x03;
		break;
	case 110:
	case 105:
	default:
		val = 0x01;
		break;