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