Lines Matching refs:tdata
141 struct hwmon_thermal_data *tdata = data; in hwmon_thermal_get_temp() local
142 struct hwmon_device *hwdev = to_hwmon_device(tdata->dev); in hwmon_thermal_get_temp()
146 ret = hwdev->chip->ops->read(tdata->dev, hwmon_temp, hwmon_temp_input, in hwmon_thermal_get_temp()
147 tdata->index, &t); in hwmon_thermal_get_temp()
168 struct hwmon_thermal_data *tdata; in hwmon_thermal_add_sensor() local
172 tdata = devm_kzalloc(dev, sizeof(*tdata), GFP_KERNEL); in hwmon_thermal_add_sensor()
173 if (!tdata) in hwmon_thermal_add_sensor()
176 tdata->dev = dev; in hwmon_thermal_add_sensor()
177 tdata->index = index; in hwmon_thermal_add_sensor()
179 tzd = devm_thermal_zone_of_sensor_register(dev, index, tdata, in hwmon_thermal_add_sensor()
188 err = devm_add_action(dev, hwmon_thermal_remove_sensor, &tdata->node); in hwmon_thermal_add_sensor()
192 tdata->tzd = tzd; in hwmon_thermal_add_sensor()
193 list_add(&tdata->node, &hwdev->tzdata); in hwmon_thermal_add_sensor()