Lines Matching refs:leds
38 for (i = 0; i < ARRAY_SIZE(priv->leds); i++) in p54_update_leds()
39 if (priv->leds[i].toggled) { in p54_update_leds()
42 tmp = 70 + 200 / (priv->leds[i].toggled); in p54_update_leds()
46 if (priv->leds[i].led_dev.brightness == LED_OFF) in p54_update_leds()
49 priv->leds[i].toggled = in p54_update_leds()
50 !!priv->leds[i].led_dev.brightness; in p54_update_leds()
85 struct p54_led_dev *led = &priv->leds[led_index]; in p54_register_led()
149 for (i = 0; i < ARRAY_SIZE(priv->leds); i++) { in p54_unregister_leds()
150 if (priv->leds[i].registered) { in p54_unregister_leds()
151 priv->leds[i].registered = false; in p54_unregister_leds()
152 priv->leds[i].toggled = 0; in p54_unregister_leds()
153 led_classdev_unregister(&priv->leds[i].led_dev); in p54_unregister_leds()