Lines Matching defs:cdev
63 * @cdev: cooling device
83 struct thermal_cooling_device *cdev;
125 static int emc2305_get_cdev_idx(struct thermal_cooling_device *cdev)
127 struct emc2305_data *data = cdev->devdata;
128 size_t len = strlen(cdev->type);
146 ret = cdev->type[len - 1];
156 static int emc2305_get_cur_state(struct thermal_cooling_device *cdev, unsigned long *state)
159 struct emc2305_data *data = cdev->devdata;
161 cdev_idx = emc2305_get_cdev_idx(cdev);
169 static int emc2305_get_max_state(struct thermal_cooling_device *cdev, unsigned long *state)
171 struct emc2305_data *data = cdev->devdata;
206 static int emc2305_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state)
209 struct emc2305_data *data = cdev->devdata;
214 cdev_idx = emc2305_get_cdev_idx(cdev);
298 data->cdev_data[cdev_idx].cdev =
302 if (IS_ERR(data->cdev_data[cdev_idx].cdev)) {
304 return PTR_ERR(data->cdev_data[cdev_idx].cdev);
354 if (data->cdev_data[i].cdev)
355 thermal_cooling_device_unregister(data->cdev_data[i].cdev);