Lines Matching refs:cdev
38 struct thermal_cooling_device *cdev; member
118 static int pwm_fan_get_max_state(struct thermal_cooling_device *cdev, in pwm_fan_get_max_state() argument
121 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_get_max_state()
131 static int pwm_fan_get_cur_state(struct thermal_cooling_device *cdev, in pwm_fan_get_cur_state() argument
134 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_get_cur_state()
145 pwm_fan_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) in pwm_fan_set_cur_state() argument
147 struct pwm_fan_ctx *ctx = cdev->devdata; in pwm_fan_set_cur_state()
158 dev_err(&cdev->device, "Cannot set pwm!\n"); in pwm_fan_set_cur_state()
216 struct thermal_cooling_device *cdev; in pwm_fan_probe() local
267 cdev = thermal_of_cooling_device_register(pdev->dev.of_node, in pwm_fan_probe()
270 if (IS_ERR(cdev)) { in pwm_fan_probe()
274 return PTR_ERR(cdev); in pwm_fan_probe()
276 ctx->cdev = cdev; in pwm_fan_probe()
277 thermal_cdev_update(cdev); in pwm_fan_probe()
287 thermal_cooling_device_unregister(ctx->cdev); in pwm_fan_remove()