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()
191 if (!data->ti_thermal) { in ti_thermal_set_mode()
196 mutex_lock(&data->ti_thermal->lock); in ti_thermal_set_mode()
199 data->ti_thermal->polling_delay = FAST_TEMP_MONITORING_RATE; in ti_thermal_set_mode()
201 data->ti_thermal->polling_delay = 0; in ti_thermal_set_mode()
203 mutex_unlock(&data->ti_thermal->lock); in ti_thermal_set_mode()
207 data->ti_thermal->polling_delay); in ti_thermal_set_mode()
208 thermal_zone_device_update(data->ti_thermal); in ti_thermal_set_mode()
210 data->ti_thermal->polling_delay); in ti_thermal_set_mode()
340 data->ti_thermal = thermal_zone_of_sensor_register(bgp->dev, id, in ti_thermal_expose_sensor()
342 if (IS_ERR(data->ti_thermal)) { in ti_thermal_expose_sensor()
344 data->ti_thermal = thermal_zone_device_register(domain, in ti_thermal_expose_sensor()
348 if (IS_ERR(data->ti_thermal)) { in ti_thermal_expose_sensor()
350 return PTR_ERR(data->ti_thermal); in ti_thermal_expose_sensor()
352 data->ti_thermal->polling_delay = FAST_TEMP_MONITORING_RATE; in ti_thermal_expose_sensor()
357 data->ti_thermal->polling_delay); in ti_thermal_expose_sensor()
368 if (data && data->ti_thermal) { in ti_thermal_remove_sensor()
370 thermal_zone_device_unregister(data->ti_thermal); in ti_thermal_remove_sensor()
373 data->ti_thermal); in ti_thermal_remove_sensor()