Lines Matching full:leds
9 #include <linux/leds.h>
85 struct ariel_led *leds; in ariel_led_probe() local
94 leds = devm_kcalloc(dev, NLEDS, sizeof(*leds), GFP_KERNEL); in ariel_led_probe()
95 if (!leds) in ariel_led_probe()
98 leds[0].ec_index = EC_BLUE_LED; in ariel_led_probe()
99 leds[0].led_cdev.name = "blue:power"; in ariel_led_probe()
100 leds[0].led_cdev.default_trigger = "default-on"; in ariel_led_probe()
102 leds[1].ec_index = EC_AMBER_LED; in ariel_led_probe()
103 leds[1].led_cdev.name = "amber:status"; in ariel_led_probe()
105 leds[2].ec_index = EC_GREEN_LED; in ariel_led_probe()
106 leds[2].led_cdev.name = "green:status"; in ariel_led_probe()
107 leds[2].led_cdev.default_trigger = "default-on"; in ariel_led_probe()
110 leds[i].ec_ram = ec_ram; in ariel_led_probe()
111 leds[i].led_cdev.brightness_get = ariel_led_get; in ariel_led_probe()
112 leds[i].led_cdev.brightness_set = ariel_led_set; in ariel_led_probe()
113 leds[i].led_cdev.blink_set = ariel_blink_set; in ariel_led_probe()
115 ret = devm_led_classdev_register(dev, &leds[i].led_cdev); in ariel_led_probe()
132 MODULE_DESCRIPTION("Dell Wyse 3020 Status LEDs Driver");