Lines Matching refs:led
694 struct assabet_led *led = container_of(cdev, in assabet_led_set() local
698 ASSABET_BCR_clear(led->mask); in assabet_led_set()
700 ASSABET_BCR_set(led->mask); in assabet_led_set()
705 struct assabet_led *led = container_of(cdev, in assabet_led_get() local
708 return (ASSABET_BCR & led->mask) ? LED_OFF : LED_FULL; in assabet_led_get()
719 struct assabet_led *led; in assabet_leds_init() local
721 led = kzalloc(sizeof(*led), GFP_KERNEL); in assabet_leds_init()
722 if (!led) in assabet_leds_init()
725 led->cdev.name = assabet_leds[i].name; in assabet_leds_init()
726 led->cdev.brightness_set = assabet_led_set; in assabet_leds_init()
727 led->cdev.brightness_get = assabet_led_get; in assabet_leds_init()
728 led->cdev.default_trigger = assabet_leds[i].trigger; in assabet_leds_init()
731 led->mask = ASSABET_BCR_LED_RED; in assabet_leds_init()
733 led->mask = ASSABET_BCR_LED_GREEN; in assabet_leds_init()
735 if (led_classdev_register(NULL, &led->cdev) < 0) { in assabet_leds_init()
736 kfree(led); in assabet_leds_init()