Lines Matching refs:tzd
89 struct thermal_zone_device *tzd[MSIC_THERMAL_SENSORS]; member
177 static int mid_read_temp(struct thermal_zone_device *tzd, int *temp) in mid_read_temp() argument
179 struct thermal_device_info *td_info = tzd->devdata; in mid_read_temp()
455 static int read_curr_temp(struct thermal_zone_device *tzd, int *temp) in read_curr_temp() argument
457 WARN_ON(tzd == NULL); in read_curr_temp()
458 return mid_read_temp(tzd, temp); in read_curr_temp()
503 pinfo->tzd[i] = thermal_zone_device_register(name[i], in mid_thermal_probe()
505 if (IS_ERR(pinfo->tzd[i])) { in mid_thermal_probe()
507 ret = PTR_ERR(pinfo->tzd[i]); in mid_thermal_probe()
518 kfree(pinfo->tzd[i]->devdata); in mid_thermal_probe()
519 thermal_zone_device_unregister(pinfo->tzd[i]); in mid_thermal_probe()
538 kfree(pinfo->tzd[i]->devdata); in mid_thermal_remove()
539 thermal_zone_device_unregister(pinfo->tzd[i]); in mid_thermal_remove()