Lines Matching refs: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 = tz->devdata; 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()
167 struct thermal_zone_device *tz; in bcm2835_thermal_probe() local
207 tz = devm_thermal_of_zone_register(&pdev->dev, 0, data, in bcm2835_thermal_probe()
209 if (IS_ERR(tz)) { in bcm2835_thermal_probe()
210 err = PTR_ERR(tz); in bcm2835_thermal_probe()
228 slope = thermal_zone_get_slope(tz); in bcm2835_thermal_probe()
229 offset = thermal_zone_get_offset(tz); in bcm2835_thermal_probe()
234 err = thermal_zone_get_trip(tz, 0, &trip); in bcm2835_thermal_probe()
262 data->tz = tz; in bcm2835_thermal_probe()
270 tz->tzp->no_hwmon = false; in bcm2835_thermal_probe()
271 err = thermal_add_hwmon_sysfs(tz); in bcm2835_thermal_probe()
279 thermal_of_zone_unregister(tz); in bcm2835_thermal_probe()
289 struct thermal_zone_device *tz = data->tz; in bcm2835_thermal_remove() local
292 thermal_of_zone_unregister(tz); in bcm2835_thermal_remove()