Lines Matching refs:ti_thermal
29 struct thermal_zone_device *ti_thermal; member
44 thermal_zone_device_update(data->ti_thermal, THERMAL_EVENT_UNSPECIFIED); in ti_thermal_work()
46 dev_dbg(&data->ti_thermal->device, "updated thermal zone %s\n", in ti_thermal_work()
47 data->ti_thermal->type); in ti_thermal_work()
173 data->ti_thermal = devm_thermal_of_zone_register(bgp->dev, id, in ti_thermal_expose_sensor()
175 if (IS_ERR(data->ti_thermal)) { in ti_thermal_expose_sensor()
177 return PTR_ERR(data->ti_thermal); in ti_thermal_expose_sensor()
180 interval = jiffies_to_msecs(data->ti_thermal->polling_delay_jiffies); in ti_thermal_expose_sensor()
185 if (devm_thermal_add_hwmon_sysfs(data->ti_thermal)) in ti_thermal_expose_sensor()
197 if (!IS_ERR_OR_NULL(data) && data->ti_thermal) { in ti_thermal_remove_sensor()
199 thermal_zone_device_unregister(data->ti_thermal); in ti_thermal_remove_sensor()