Lines Matching refs:cdev
84 struct thermal_cooling_device *cdev; member
98 static int fan_get_max_state(struct thermal_cooling_device *cdev, unsigned long in fan_get_max_state() argument
101 struct acpi_device *device = cdev->devdata; in fan_get_max_state()
166 static int fan_get_cur_state(struct thermal_cooling_device *cdev, unsigned long in fan_get_cur_state() argument
169 struct acpi_device *device = cdev->devdata; in fan_get_cur_state()
206 fan_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) in fan_set_cur_state() argument
208 struct acpi_device *device = cdev->devdata; in fan_set_cur_state()
325 struct thermal_cooling_device *cdev; in acpi_fan_probe() local
355 cdev = thermal_cooling_device_register(name, device, in acpi_fan_probe()
357 if (IS_ERR(cdev)) { in acpi_fan_probe()
358 result = PTR_ERR(cdev); in acpi_fan_probe()
362 dev_dbg(&pdev->dev, "registered as cooling_device%d\n", cdev->id); in acpi_fan_probe()
364 fan->cdev = cdev; in acpi_fan_probe()
366 &cdev->device.kobj, in acpi_fan_probe()
371 result = sysfs_create_link(&cdev->device.kobj, in acpi_fan_probe()
386 sysfs_remove_link(&fan->cdev->device.kobj, "device"); in acpi_fan_remove()
387 thermal_cooling_device_unregister(fan->cdev); in acpi_fan_remove()