Lines Matching refs:tzd
43 * @tzd: struct thermal_zone_device where the sensor is registered
52 struct thermal_zone_device *tzd;
67 if (!priv->tzd)
106 *temp = DIV_ROUND_CLOSEST(((s32)val + priv->tzd->tzp->offset) * 1000,
107 priv->tzd->tzp->slope);
162 priv->tzd = thermal_zone_of_sensor_register(&pdev->dev,
165 if (IS_ERR(priv->tzd)) {
166 ret = PTR_ERR(priv->tzd);
171 if (priv->tzd->tzp->slope == 0) {
172 thermal_zone_of_sensor_unregister(&pdev->dev, priv->tzd);
194 thermal_zone_of_sensor_unregister(&pdev->dev, priv->tzd);