Lines Matching refs:cdev
45 static int db8500_thermal_match_cdev(struct thermal_cooling_device *cdev, in db8500_thermal_match_cdev() argument
50 if (!strlen(cdev->type)) in db8500_thermal_match_cdev()
54 if (!strcmp(trip_point->cdev_name[i], cdev->type)) in db8500_thermal_match_cdev()
63 struct thermal_cooling_device *cdev) in db8500_cdev_bind() argument
70 cdev->ops->get_max_state(cdev, &max_state); in db8500_cdev_bind()
73 if (db8500_thermal_match_cdev(cdev, &ptrips->trip_points[i])) in db8500_cdev_bind()
78 ret = thermal_zone_bind_cooling_device(thermal, i, cdev, in db8500_cdev_bind()
81 dev_info(&cdev->device, "%s bind to %d: %d-%s\n", cdev->type, in db8500_cdev_bind()
90 struct thermal_cooling_device *cdev) in db8500_cdev_unbind() argument
97 if (db8500_thermal_match_cdev(cdev, &ptrips->trip_points[i])) in db8500_cdev_unbind()
100 ret = thermal_zone_unbind_cooling_device(thermal, i, cdev); in db8500_cdev_unbind()
102 dev_info(&cdev->device, "%s unbind from %d: %s\n", cdev->type, in db8500_cdev_unbind()