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

Commit 3b900300 authored by Rama Krishna Phani A's avatar Rama Krishna Phani A
Browse files

thermal: tsens: Update sensor id for sdm660



Update sensor id flag for sdm660 such that thermal
client can obtain the HW ID for the available
temperature sensors (TSENS) with sensor ID details.

Change-Id: I6e217f734e8748c9ac5edf1c7a2b0dbf9deb9ac0
Signed-off-by: default avatarRama Krishna Phani A <rphani@codeaurora.org>
parent 314869eb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -363,6 +363,7 @@ static int32_t get_tsens_sensor_for_client_id(struct tsens_tm_device *tmdev,

	if (!strcmp(id->compatible, "qcom,msm8996-tsens") ||
		(!strcmp(id->compatible, "qcom,msm8998-tsens")) ||
		(!strcmp(id->compatible, "qcom,sdm660-tsens")) ||
		(!strcmp(id->compatible, "qcom,msmhamster-tsens"))) {
		while (i < tmdev->tsens_num_sensor && !id_found) {
			if (tmdev->sensor[i].sensor_client_id ==
@@ -492,6 +493,7 @@ int tsens_get_hw_id_mapping(int thermal_sensor_num, int *sensor_client_id)

		if (!strcmp(id->compatible, "qcom,msm8996-tsens") ||
			(!strcmp(id->compatible, "qcom,msm8998-tsens")) ||
			(!strcmp(id->compatible, "qcom,sdm660-tsens")) ||
			(!strcmp(id->compatible, "qcom,msmhamster-tsens"))) {
			/* Assign client id's that is used to get the
			 * controller and hw_sensor details