Lines Matching defs:cdev
36 struct led_classdev cdev;
39 static inline struct nic78bx_led *to_nic78bx_led(struct led_classdev *cdev)
41 return container_of(cdev, struct nic78bx_led, cdev);
44 static void nic78bx_brightness_set(struct led_classdev *cdev,
47 struct nic78bx_led *nled = to_nic78bx_led(cdev);
65 static enum led_brightness nic78bx_brightness_get(struct led_classdev *cdev)
67 struct nic78bx_led *nled = to_nic78bx_led(cdev);
82 .cdev = {
92 .cdev = {
102 .cdev = {
112 .cdev = {
171 ret = devm_led_classdev_register(dev, &nic78bx_leds[i].cdev);