Lines Matching refs:led_cdev
35 struct led_classdev led_cdev; member
41 #define led_cdev_to_blmled(c) container_of(c, struct blinkm_led, cdev.led_cdev)
433 static int blinkm_set_mc_brightness(struct led_classdev *led_cdev, in blinkm_set_mc_brightness() argument
436 struct led_classdev_mc *mcled_cdev = lcdev_to_mccdev(led_cdev); in blinkm_set_mc_brightness()
451 static int blinkm_led_common_set(struct led_classdev *led_cdev, in blinkm_led_common_set() argument
455 struct blinkm_led *led = led_cdev_to_blmled(led_cdev); in blinkm_led_common_set()
492 static int blinkm_led_red_set(struct led_classdev *led_cdev, in blinkm_led_red_set() argument
495 return blinkm_led_common_set(led_cdev, value, RED); in blinkm_led_red_set()
498 static int blinkm_led_green_set(struct led_classdev *led_cdev, in blinkm_led_green_set() argument
501 return blinkm_led_common_set(led_cdev, value, GREEN); in blinkm_led_green_set()
504 static int blinkm_led_blue_set(struct led_classdev *led_cdev, in blinkm_led_blue_set() argument
507 return blinkm_led_common_set(led_cdev, value, BLUE); in blinkm_led_blue_set()
609 leds[i]->cdev.led_cdev.max_brightness = 255; in register_separate_colors()
610 leds[i]->cdev.led_cdev.flags = LED_CORE_SUSPENDRESUME; in register_separate_colors()
617 leds[i]->cdev.led_cdev.name = blinkm_led_name; in register_separate_colors()
618 leds[i]->cdev.led_cdev.brightness_set_blocking = in register_separate_colors()
621 &leds[i]->cdev.led_cdev); in register_separate_colors()
625 leds[i]->cdev.led_cdev.name); in register_separate_colors()
634 leds[i]->cdev.led_cdev.name = blinkm_led_name; in register_separate_colors()
635 leds[i]->cdev.led_cdev.brightness_set_blocking = in register_separate_colors()
638 &leds[i]->cdev.led_cdev); in register_separate_colors()
642 leds[i]->cdev.led_cdev.name); in register_separate_colors()
651 leds[i]->cdev.led_cdev.name = blinkm_led_name; in register_separate_colors()
652 leds[i]->cdev.led_cdev.brightness_set_blocking = in register_separate_colors()
655 &leds[i]->cdev.led_cdev); in register_separate_colors()
659 leds[i]->cdev.led_cdev.name); in register_separate_colors()
670 led_classdev_unregister(&leds[GREEN]->cdev.led_cdev); in register_separate_colors()
672 led_classdev_unregister(&leds[RED]->cdev.led_cdev); in register_separate_colors()
702 mc_led->cdev.mcled_cdev.led_cdev.brightness = 255; in register_multicolor()
703 mc_led->cdev.mcled_cdev.led_cdev.max_brightness = 255; in register_multicolor()
704 mc_led->cdev.mcled_cdev.led_cdev.flags = LED_CORE_SUSPENDRESUME; in register_multicolor()
710 mc_led->cdev.mcled_cdev.led_cdev.name = blinkm_led_name; in register_multicolor()
711 mc_led->cdev.mcled_cdev.led_cdev.brightness_set_blocking = blinkm_set_mc_brightness; in register_multicolor()
716 mc_led->cdev.led_cdev.name); in register_multicolor()
774 led_classdev_unregister(&data->blinkm_leds[i].cdev.led_cdev); in blinkm_remove()