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 = 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()
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 err = thermal_add_hwmon_sysfs(tz); in bcm2835_thermal_probe()
278 devm_thermal_of_zone_unregister(&pdev->dev, tz); in bcm2835_thermal_probe()