Lines Matching defs:cdev
72 struct thermal_cooling_device *cdev;
86 static int fan_get_max_state(struct thermal_cooling_device *cdev, unsigned long
89 struct acpi_device *device = cdev->devdata;
165 static int fan_get_cur_state(struct thermal_cooling_device *cdev, unsigned long
168 struct acpi_device *device = cdev->devdata;
205 fan_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state)
207 struct acpi_device *device = cdev->devdata;
377 struct thermal_cooling_device *cdev;
413 cdev = thermal_cooling_device_register(name, device,
415 if (IS_ERR(cdev)) {
416 result = PTR_ERR(cdev);
420 dev_dbg(&pdev->dev, "registered as cooling_device%d\n", cdev->id);
422 fan->cdev = cdev;
424 &cdev->device.kobj,
429 result = sysfs_create_link(&cdev->device.kobj,
462 sysfs_remove_link(&fan->cdev->device.kobj, "device");
463 thermal_cooling_device_unregister(fan->cdev);