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

Commit 0910b3c6 authored by Siddartha Mohanadoss's avatar Siddartha Mohanadoss Committed by Matt Wagantall
Browse files

thermal: tsens: Use client ID mapping for sysfs thermal reads



Sensor client ID mapping is used for associating it with the
controller and sensor within each controller. This is broadcasted
to the thermal kernel clients using the api tsens_get_hw_id_mapping.
Thermal sysfs reads also needs to use the sensor client ID when
applicable where multiple controllers are present.
Therefore use the same sensor client ID used for
kernel reads and sysfs reads.

CRs-Fixed: 839887
Change-Id: I22efeed5e0fd41cb85e88ec8a3002a43d5f8321d
Signed-off-by: default avatarSiddartha Mohanadoss <smohanad@codeaurora.org>
parent 9822bfc8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1050,7 +1050,7 @@ static int tsens_tz_get_temp(struct thermal_zone_device *thermal,
	if (!tmdev)
		return -EINVAL;

	rc = msm_tsens_get_temp(tm_sensor->sensor_hw_num, temp);
	rc = msm_tsens_get_temp(tm_sensor->sensor_client_id, temp);
	if (rc)
		return rc;