Lines Matching refs:trip_id
113 int __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
116 if (!tz || !tz->trips || trip_id < 0 || trip_id >= tz->num_trips || !trip)
119 *trip = tz->trips[trip_id];
124 int thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
130 ret = __thermal_zone_get_trip(tz, trip_id, trip);
137 int thermal_zone_set_trip(struct thermal_zone_device *tz, int trip_id,
146 ret = __thermal_zone_get_trip(tz, trip_id, &t);
154 ret = tz->ops->set_trip_temp(tz, trip_id, trip->temperature);
160 ret = tz->ops->set_trip_hyst(tz, trip_id, trip->hysteresis);
166 tz->trips[trip_id] = *trip;
168 thermal_notify_tz_trip_change(tz->id, trip_id, trip->type,