Lines Matching refs:tzd
73 struct thermal_zone_device *tzd[MSIC_THERMAL_SENSORS]; member
161 static int mid_read_temp(struct thermal_zone_device *tzd, int *temp) in mid_read_temp() argument
163 struct thermal_device_info *td_info = tzd->devdata; in mid_read_temp()
441 static int read_curr_temp(struct thermal_zone_device *tzd, int *temp) in read_curr_temp() argument
443 WARN_ON(tzd == NULL); in read_curr_temp()
444 return mid_read_temp(tzd, temp); in read_curr_temp()
489 pinfo->tzd[i] = thermal_zone_device_register(name[i], in mid_thermal_probe()
491 if (IS_ERR(pinfo->tzd[i])) { in mid_thermal_probe()
493 ret = PTR_ERR(pinfo->tzd[i]); in mid_thermal_probe()
504 kfree(pinfo->tzd[i]->devdata); in mid_thermal_probe()
505 thermal_zone_device_unregister(pinfo->tzd[i]); in mid_thermal_probe()
524 kfree(pinfo->tzd[i]->devdata); in mid_thermal_remove()
525 thermal_zone_device_unregister(pinfo->tzd[i]); in mid_thermal_remove()