Lines Matching defs:cdev

72  * @cdev:		LED class device for this LED device
78 struct led_classdev cdev;
152 static int mt6323_led_hw_brightness(struct led_classdev *cdev,
155 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev);
178 static int mt6323_led_hw_off(struct led_classdev *cdev)
180 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev);
204 mt6323_get_led_hw_brightness(struct led_classdev *cdev)
206 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev);
235 static int mt6323_led_hw_on(struct led_classdev *cdev,
238 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev);
270 ret = mt6323_led_hw_brightness(cdev, brightness);
289 static int mt6323_led_set_blink(struct led_classdev *cdev,
293 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev);
338 ret = mt6323_led_hw_on(cdev, cdev->max_brightness);
341 led->current_brightness = cdev->max_brightness;
359 static int mt6323_led_set_brightness(struct led_classdev *cdev,
362 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev);
369 ret = mt6323_led_hw_on(cdev, brightness);
373 ret = mt6323_led_hw_brightness(cdev, brightness);
377 ret = mt6323_led_hw_off(cdev);
389 static int mtk_wled_hw_on(struct led_classdev *cdev)
391 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev);
423 static int mtk_wled_hw_off(struct led_classdev *cdev)
425 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev);
454 static enum led_brightness mt6323_get_wled_brightness(struct led_classdev *cdev)
456 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev);
473 static int mt6323_wled_set_brightness(struct led_classdev *cdev,
476 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev);
484 ret = mtk_wled_hw_on(cdev);
488 ret = mtk_wled_hw_off(cdev);
500 static int mt6323_led_set_dt_default(struct led_classdev *cdev,
503 struct mt6323_led *led = container_of(cdev, struct mt6323_led, cdev);
510 ret = mt6323_led_set_brightness(cdev, cdev->max_brightness);
513 ret = mt6323_get_led_hw_brightness(cdev);
520 ret = mt6323_led_set_brightness(cdev, LED_OFF);
595 leds->led[reg]->cdev.max_brightness = spec->max_brightness;
598 leds->led[reg]->cdev.brightness_set_blocking =
600 leds->led[reg]->cdev.brightness_get =
603 leds->led[reg]->cdev.brightness_set_blocking =
605 leds->led[reg]->cdev.blink_set = mt6323_led_set_blink;
606 leds->led[reg]->cdev.brightness_get =
611 ret = mt6323_led_set_dt_default(&leds->led[reg]->cdev, child);
620 ret = devm_led_classdev_register_ext(dev, &leds->led[reg]->cdev,
643 mt6323_led_hw_off(&leds->led[i]->cdev);