• Home
  • Raw
  • Download

Lines Matching refs:led_cdev

182 		struct led_classdev	led_cdev;  member
393 int level = TO_LEVEL(led->led_cdev.brightness); in led_prepare()
400 led->led_cdev.brightness = TO_BRIGHT(level); in led_prepare()
437 led->led_cdev.brightness = LED_FULL; in led_prepare()
447 led->led_cdev.brightness = TO_BRIGHT(tca->bank[best].level); in led_prepare()
526 led->led_cdev.brightness = TO_BRIGHT(b->level); in led_prepare()
556 static void tca6507_brightness_set(struct led_classdev *led_cdev, in tca6507_brightness_set() argument
559 struct tca6507_led *led = container_of(led_cdev, struct tca6507_led, in tca6507_brightness_set()
560 led_cdev); in tca6507_brightness_set()
561 led->led_cdev.brightness = brightness; in tca6507_brightness_set()
567 static int tca6507_blink_set(struct led_classdev *led_cdev, in tca6507_blink_set() argument
571 struct tca6507_led *led = container_of(led_cdev, struct tca6507_led, in tca6507_blink_set()
572 led_cdev); in tca6507_blink_set()
576 else if (delay_on != &led_cdev->blink_delay_on) in tca6507_blink_set()
582 else if (delay_off != &led_cdev->blink_delay_off) in tca6507_blink_set()
591 if (led->led_cdev.brightness == LED_OFF) in tca6507_blink_set()
592 led->led_cdev.brightness = LED_FULL; in tca6507_blink_set()
596 led->led_cdev.brightness = LED_OFF; in tca6507_blink_set()
789 l->led_cdev.name = pdata->leds.leds[i].name; in tca6507_probe()
790 l->led_cdev.default_trigger in tca6507_probe()
792 l->led_cdev.brightness_set = tca6507_brightness_set; in tca6507_probe()
793 l->led_cdev.blink_set = tca6507_blink_set; in tca6507_probe()
796 &l->led_cdev); in tca6507_probe()
811 if (tca->leds[i].led_cdev.name) in tca6507_probe()
812 led_classdev_unregister(&tca->leds[i].led_cdev); in tca6507_probe()
824 if (tca_leds[i].led_cdev.name) in tca6507_remove()
825 led_classdev_unregister(&tca_leds[i].led_cdev); in tca6507_remove()