Lines Matching refs:tzd
64 struct thermal_zone_device *tzd; member
227 static int pch_thermal_get_temp(struct thermal_zone_device *tzd, int *temp) in pch_thermal_get_temp() argument
229 struct pch_thermal_device *ptd = tzd->devdata; in pch_thermal_get_temp()
234 static int pch_get_trip_type(struct thermal_zone_device *tzd, int trip, in pch_get_trip_type() argument
237 struct pch_thermal_device *ptd = tzd->devdata; in pch_get_trip_type()
251 static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp) in pch_get_trip_temp() argument
253 struct pch_thermal_device *ptd = tzd->devdata; in pch_get_trip_temp()
348 ptd->tzd = thermal_zone_device_register(bi->name, nr_trips, 0, ptd, in intel_pch_thermal_probe()
350 if (IS_ERR(ptd->tzd)) { in intel_pch_thermal_probe()
353 err = PTR_ERR(ptd->tzd); in intel_pch_thermal_probe()
356 err = thermal_zone_device_enable(ptd->tzd); in intel_pch_thermal_probe()
363 thermal_zone_device_unregister(ptd->tzd); in intel_pch_thermal_probe()
378 thermal_zone_device_unregister(ptd->tzd); in intel_pch_thermal_remove()