Lines Matching refs:ti_thermal

40 	struct thermal_zone_device *ti_thermal;  member
55 thermal_zone_device_update(data->ti_thermal); in ti_thermal_work()
57 dev_dbg(&data->ti_thermal->device, "updated thermal zone %s\n", in ti_thermal_work()
58 data->ti_thermal->type); in ti_thermal_work()
190 if (!data->ti_thermal) { in ti_thermal_set_mode()
195 mutex_lock(&data->ti_thermal->lock); in ti_thermal_set_mode()
198 data->ti_thermal->polling_delay = FAST_TEMP_MONITORING_RATE; in ti_thermal_set_mode()
200 data->ti_thermal->polling_delay = 0; in ti_thermal_set_mode()
202 mutex_unlock(&data->ti_thermal->lock); in ti_thermal_set_mode()
206 data->ti_thermal->polling_delay); in ti_thermal_set_mode()
207 thermal_zone_device_update(data->ti_thermal); in ti_thermal_set_mode()
209 data->ti_thermal->polling_delay); in ti_thermal_set_mode()
339 data->ti_thermal = thermal_zone_of_sensor_register(bgp->dev, id, in ti_thermal_expose_sensor()
341 if (IS_ERR(data->ti_thermal)) { in ti_thermal_expose_sensor()
343 data->ti_thermal = thermal_zone_device_register(domain, in ti_thermal_expose_sensor()
347 if (IS_ERR(data->ti_thermal)) { in ti_thermal_expose_sensor()
349 return PTR_ERR(data->ti_thermal); in ti_thermal_expose_sensor()
351 data->ti_thermal->polling_delay = FAST_TEMP_MONITORING_RATE; in ti_thermal_expose_sensor()
356 data->ti_thermal->polling_delay); in ti_thermal_expose_sensor()
367 if (data && data->ti_thermal) { in ti_thermal_remove_sensor()
369 thermal_zone_device_unregister(data->ti_thermal); in ti_thermal_remove_sensor()
372 data->ti_thermal); in ti_thermal_remove_sensor()