Lines Matching refs:cooling_dev
214 struct thermal_cooling_device *cooling_dev; member
263 static int video_get_max_state(struct thermal_cooling_device *cooling_dev, in video_get_max_state() argument
266 struct acpi_device *device = cooling_dev->devdata; in video_get_max_state()
273 static int video_get_cur_state(struct thermal_cooling_device *cooling_dev, in video_get_cur_state() argument
276 struct acpi_device *device = cooling_dev->devdata; in video_get_cur_state()
294 video_set_cur_state(struct thermal_cooling_device *cooling_dev, unsigned long state) in video_set_cur_state() argument
296 struct acpi_device *device = cooling_dev->devdata; in video_set_cur_state()
1759 device->cooling_dev = thermal_cooling_device_register("LCD", in acpi_video_dev_register_backlight()
1761 if (IS_ERR(device->cooling_dev)) { in acpi_video_dev_register_backlight()
1768 device->cooling_dev = NULL; in acpi_video_dev_register_backlight()
1773 device->cooling_dev->id); in acpi_video_dev_register_backlight()
1775 &device->cooling_dev->device.kobj, in acpi_video_dev_register_backlight()
1780 result = sysfs_create_link(&device->cooling_dev->device.kobj, in acpi_video_dev_register_backlight()
1850 if (device->cooling_dev) { in acpi_video_dev_unregister_backlight()
1852 sysfs_remove_link(&device->cooling_dev->device.kobj, "device"); in acpi_video_dev_unregister_backlight()
1853 thermal_cooling_device_unregister(device->cooling_dev); in acpi_video_dev_unregister_backlight()
1854 device->cooling_dev = NULL; in acpi_video_dev_unregister_backlight()