Lines Matching defs:tzd
89 struct thermal_zone_device *tzd[MSIC_THERMAL_SENSORS];
177 static int mid_read_temp(struct thermal_zone_device *tzd, unsigned long *temp)
179 struct thermal_device_info *td_info = tzd->devdata;
456 static int read_curr_temp(struct thermal_zone_device *tzd, unsigned long *temp)
458 WARN_ON(tzd == NULL);
459 return mid_read_temp(tzd, temp);
504 pinfo->tzd[i] = thermal_zone_device_register(name[i],
506 if (IS_ERR(pinfo->tzd[i])) {
508 ret = PTR_ERR(pinfo->tzd[i]);
519 kfree(pinfo->tzd[i]->devdata);
520 thermal_zone_device_unregister(pinfo->tzd[i]);
539 kfree(pinfo->tzd[i]->devdata);
540 thermal_zone_device_unregister(pinfo->tzd[i]);