Lines Matching defs:cooling_dev
204 struct thermal_cooling_device *cooling_dev;
253 static int video_get_max_state(struct thermal_cooling_device *cooling_dev,
256 struct acpi_video_device *video = cooling_dev->devdata;
262 static int video_get_cur_state(struct thermal_cooling_device *cooling_dev,
265 struct acpi_video_device *video = cooling_dev->devdata;
282 video_set_cur_state(struct thermal_cooling_device *cooling_dev, unsigned long state)
284 struct acpi_video_device *video = cooling_dev->devdata;
1755 device->cooling_dev = thermal_cooling_device_register("LCD", device,
1757 if (IS_ERR(device->cooling_dev)) {
1759 * Set cooling_dev to NULL so we don't crash trying to free it.
1764 device->cooling_dev = NULL;
1769 device->cooling_dev->id);
1771 &device->cooling_dev->device.kobj,
1776 result = sysfs_create_link(&device->cooling_dev->device.kobj,
1846 if (device->cooling_dev) {
1848 sysfs_remove_link(&device->cooling_dev->device.kobj, "device");
1849 thermal_cooling_device_unregister(device->cooling_dev);
1850 device->cooling_dev = NULL;