Lines Matching defs:cooling_dev
198 struct thermal_cooling_device *cooling_dev;
247 static int video_get_max_state(struct thermal_cooling_device *cooling_dev,
250 struct acpi_video_device *video = cooling_dev->devdata;
256 static int video_get_cur_state(struct thermal_cooling_device *cooling_dev,
259 struct acpi_video_device *video = cooling_dev->devdata;
276 video_set_cur_state(struct thermal_cooling_device *cooling_dev, unsigned long state)
278 struct acpi_video_device *video = cooling_dev->devdata;
1750 device->cooling_dev = thermal_cooling_device_register("LCD", device,
1752 if (IS_ERR(device->cooling_dev)) {
1754 * Set cooling_dev to NULL so we don't crash trying to free it.
1759 device->cooling_dev = NULL;
1764 device->cooling_dev->id);
1766 &device->cooling_dev->device.kobj,
1771 result = sysfs_create_link(&device->cooling_dev->device.kobj,
1841 if (device->cooling_dev) {
1843 sysfs_remove_link(&device->cooling_dev->device.kobj, "device");
1844 thermal_cooling_device_unregister(device->cooling_dev);
1845 device->cooling_dev = NULL;