Lines Matching refs:cdev
80 struct thermal_cooling_device *cdev; member
94 static int fan_get_max_state(struct thermal_cooling_device *cdev, unsigned long in fan_get_max_state() argument
97 struct acpi_device *device = cdev->devdata; in fan_get_max_state()
163 static int fan_get_cur_state(struct thermal_cooling_device *cdev, unsigned long in fan_get_cur_state() argument
166 struct acpi_device *device = cdev->devdata; in fan_get_cur_state()
203 fan_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) in fan_set_cur_state() argument
205 struct acpi_device *device = cdev->devdata; in fan_set_cur_state()
322 struct thermal_cooling_device *cdev; in acpi_fan_probe() local
352 cdev = thermal_cooling_device_register(name, device, in acpi_fan_probe()
354 if (IS_ERR(cdev)) { in acpi_fan_probe()
355 result = PTR_ERR(cdev); in acpi_fan_probe()
359 dev_dbg(&pdev->dev, "registered as cooling_device%d\n", cdev->id); in acpi_fan_probe()
361 fan->cdev = cdev; in acpi_fan_probe()
363 &cdev->device.kobj, in acpi_fan_probe()
368 result = sysfs_create_link(&cdev->device.kobj, in acpi_fan_probe()
383 sysfs_remove_link(&fan->cdev->device.kobj, "device"); in acpi_fan_remove()
384 thermal_cooling_device_unregister(fan->cdev); in acpi_fan_remove()