Lines Matching full:tz
67 struct thermal_zone_device *tz; member
91 static int bcm2835_thermal_get_temp(struct thermal_zone_device *tz, int *temp) in bcm2835_thermal_get_temp() argument
93 struct bcm2835_thermal_data *data = thermal_zone_device_priv(tz); in bcm2835_thermal_get_temp()
103 thermal_zone_get_offset(data->tz), in bcm2835_thermal_get_temp()
104 thermal_zone_get_slope(data->tz)); in bcm2835_thermal_get_temp()
168 struct thermal_zone_device *tz; in bcm2835_thermal_probe() local
199 tz = devm_thermal_of_zone_register(dev, 0, data, &bcm2835_thermal_ops); in bcm2835_thermal_probe()
200 if (IS_ERR(tz)) in bcm2835_thermal_probe()
201 return dev_err_probe(dev, PTR_ERR(tz), "Failed to register the thermal device\n"); in bcm2835_thermal_probe()
213 slope = thermal_zone_get_slope(tz); in bcm2835_thermal_probe()
214 offset = thermal_zone_get_offset(tz); in bcm2835_thermal_probe()
219 err = thermal_zone_get_crit_temp(tz, &crit_temp); in bcm2835_thermal_probe()
245 data->tz = tz; in bcm2835_thermal_probe()
253 err = thermal_add_hwmon_sysfs(tz); in bcm2835_thermal_probe()