Lines Matching defs:cooling_dev
211 struct thermal_cooling_device *cooling_dev;
260 static int video_get_max_state(struct thermal_cooling_device *cooling_dev,
263 struct acpi_device *device = cooling_dev->devdata;
270 static int video_get_cur_state(struct thermal_cooling_device *cooling_dev,
273 struct acpi_device *device = cooling_dev->devdata;
291 video_set_cur_state(struct thermal_cooling_device *cooling_dev, unsigned long state)
293 struct acpi_device *device = cooling_dev->devdata;
1830 device->cooling_dev = thermal_cooling_device_register("LCD",
1832 if (IS_ERR(device->cooling_dev)) {
1834 * Set cooling_dev to NULL so we don't crash trying to free it.
1839 device->cooling_dev = NULL;
1844 device->cooling_dev->id);
1846 &device->cooling_dev->device.kobj,
1850 result = sysfs_create_link(&device->cooling_dev->device.kobj,
1922 if (device->cooling_dev) {
1924 sysfs_remove_link(&device->cooling_dev->device.kobj, "device");
1925 thermal_cooling_device_unregister(device->cooling_dev);
1926 device->cooling_dev = NULL;