Searched refs:cooling_dev (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/acpi/
H A Dvideo.c220 struct thermal_cooling_device *cooling_dev; member in struct:acpi_video_device
298 static int video_get_max_state(struct thermal_cooling_device *cooling_dev, unsigned video_get_max_state() argument
301 struct acpi_device *device = cooling_dev->devdata; video_get_max_state()
308 static int video_get_cur_state(struct thermal_cooling_device *cooling_dev, unsigned video_get_cur_state() argument
311 struct acpi_device *device = cooling_dev->devdata; video_get_cur_state()
328 video_set_cur_state(struct thermal_cooling_device *cooling_dev, unsigned long state) video_set_cur_state() argument
330 struct acpi_device *device = cooling_dev->devdata; video_set_cur_state()
1742 device->cooling_dev = thermal_cooling_device_register("LCD", acpi_video_dev_register_backlight()
1744 if (IS_ERR(device->cooling_dev)) { acpi_video_dev_register_backlight()
1746 * Set cooling_dev to NULL so we don't crash trying to free it. acpi_video_dev_register_backlight()
1751 device->cooling_dev = NULL; acpi_video_dev_register_backlight()
1756 device->cooling_dev->id); acpi_video_dev_register_backlight()
1758 &device->cooling_dev->device.kobj, acpi_video_dev_register_backlight()
1762 result = sysfs_create_link(&device->cooling_dev->device.kobj, acpi_video_dev_register_backlight()
1816 if (device->cooling_dev) { acpi_video_dev_unregister_backlight()
1818 sysfs_remove_link(&device->cooling_dev->device.kobj, "device"); acpi_video_dev_unregister_backlight()
1819 thermal_cooling_device_unregister(device->cooling_dev); acpi_video_dev_unregister_backlight()
1820 device->cooling_dev = NULL; acpi_video_dev_unregister_backlight()
/linux-4.1.27/drivers/thermal/
H A Dintel_powerclamp.c91 static struct thermal_cooling_device *cooling_dev; variable in typeref:struct:thermal_cooling_device
795 cooling_dev = thermal_cooling_device_register("intel_powerclamp", NULL, powerclamp_init()
797 if (IS_ERR(cooling_dev)) { powerclamp_init()
824 thermal_cooling_device_unregister(cooling_dev); powerclamp_exit()

Completed in 135 milliseconds