Lines Matching full:tz
225 static struct device_node *thermal_of_zone_get_by_name(struct thermal_zone_device *tz)
233 tz_np = of_get_child_by_name(np, tz->type);
305 static bool thermal_of_should_bind(struct thermal_zone_device *tz,
313 tz_np = thermal_of_zone_get_by_name(tz);
315 pr_err("Failed to get node tz by name\n");
339 * @tz: a pointer to the thermal zone structure
341 static void thermal_of_zone_unregister(struct thermal_zone_device *tz)
343 thermal_zone_device_disable(tz);
344 thermal_zone_device_unregister(tz);
371 struct thermal_zone_device *tz;
415 tz = thermal_zone_device_register_with_trips(np->name, trips, ntrips,
418 if (IS_ERR(tz)) {
419 ret = PTR_ERR(tz);
427 ret = thermal_zone_device_enable(tz);
430 tz->type, tz->id, ret);
431 thermal_of_zone_unregister(tz);
435 return tz;
498 * @tz: a pointer to struct thermal_zone where the sensor is registered.
507 void devm_thermal_of_zone_unregister(struct device *dev, struct thermal_zone_device *tz)
510 devm_thermal_of_zone_match, tz));