Lines Matching refs:tzd
86 struct thermal_zone_device *tzd;
120 static int pch_thermal_get_temp(struct thermal_zone_device *tzd, int *temp)
122 struct pch_thermal_device *ptd = thermal_zone_device_priv(tzd);
128 static void pch_critical(struct thermal_zone_device *tzd)
130 dev_dbg(thermal_zone_device(tzd), "%s: critical temperature reached\n",
131 thermal_zone_device_type(tzd));
236 ptd->tzd = thermal_zone_device_register_with_trips(board_names[board_id],
240 if (IS_ERR(ptd->tzd)) {
243 err = PTR_ERR(ptd->tzd);
246 err = thermal_zone_device_enable(ptd->tzd);
253 thermal_zone_device_unregister(ptd->tzd);
268 thermal_zone_device_unregister(ptd->tzd);