trip = &tz->trips[trip_id];
if (hyst != trip->hysteresis) {
- if (tz->ops.set_trip_hyst) {
- ret = tz->ops.set_trip_hyst(tz, trip_id, hyst);
- if (ret)
- goto unlock;
- }
-
trip->hysteresis = hyst;
thermal_zone_trip_updated(tz, trip);
}
-unlock:
mutex_unlock(&tz->lock);
return ret ? ret : count;