Lines Matching refs:ldev
62 struct led_classdev ldev; /* Embedded struct for led */ member
149 static int u2fzero_blink(struct led_classdev *ldev) in u2fzero_blink() argument
151 struct u2fzero_device *dev = container_of(ldev, in u2fzero_blink()
152 struct u2fzero_device, ldev); in u2fzero_blink()
166 static int u2fzero_brightness_set(struct led_classdev *ldev, in u2fzero_brightness_set() argument
169 ldev->brightness = LED_OFF; in u2fzero_brightness_set()
171 return u2fzero_blink(ldev); in u2fzero_brightness_set()
221 dev->ldev.name = dev->led_name; in u2fzero_init_led()
222 dev->ldev.max_brightness = LED_ON; in u2fzero_init_led()
223 dev->ldev.flags = LED_HW_PLUGGABLE; in u2fzero_init_led()
224 dev->ldev.brightness_set_blocking = u2fzero_brightness_set; in u2fzero_init_led()
226 return devm_led_classdev_register(&dev->hdev->dev, &dev->ldev); in u2fzero_init_led()