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

Commit b0363191 authored by Ram Chandrasekar's avatar Ram Chandrasekar
Browse files

drivers: thermal: Update the set_trips for hysteresis change



User space thermal daemon can change the hysteresis value for a trip
threshold dynamically. In those cases the hysteresis store routine
calls thermal_zone_set_trips only when the set_temp_hyst call fails. For
sensors using of-thermal interface and setting thresholds using set_trips,
will never get the new hysteresis value, as of-thermal will return
success for set_temp_hyst callback.

Update the hysteresis store callback to call thermal_zone_set_trips
function when there is a new hysteresis value from user space.

Change-Id: I513086e3823098e208c1843d5a38fe6c111a902c
Signed-off-by: default avatarRam Chandrasekar <rkumbako@codeaurora.org>
parent b03f130b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -811,7 +811,6 @@ trip_point_hyst_store(struct device *dev, struct device_attribute *attr,
	 */
	ret = tz->ops->set_trip_hyst(tz, trip, temperature);

	if (!ret)
	thermal_zone_set_trips(tz);

	return ret ? ret : count;