Lines Matching refs:tzd
86 struct thermal_zone_device *tzd; member
120 static int pch_thermal_get_temp(struct thermal_zone_device *tzd, int *temp) in pch_thermal_get_temp() argument
122 struct pch_thermal_device *ptd = tzd->devdata; in pch_thermal_get_temp()
128 static void pch_critical(struct thermal_zone_device *tzd) in pch_critical() argument
130 dev_dbg(&tzd->device, "%s: critical temperature reached\n", tzd->type); in pch_critical()
235 ptd->tzd = thermal_zone_device_register_with_trips(board_names[board_id], in intel_pch_thermal_probe()
239 if (IS_ERR(ptd->tzd)) { in intel_pch_thermal_probe()
242 err = PTR_ERR(ptd->tzd); in intel_pch_thermal_probe()
245 err = thermal_zone_device_enable(ptd->tzd); in intel_pch_thermal_probe()
252 thermal_zone_device_unregister(ptd->tzd); in intel_pch_thermal_probe()
267 thermal_zone_device_unregister(ptd->tzd); in intel_pch_thermal_remove()