Lines Matching defs:led
658 /* led = 0 | off
659 * led = 1 | signal ok
660 * led = 2 | signal strong
661 * led < 0 | only light led if leds are currently off
663 static int au8522_led_ctrl(struct au8522_state *state, int led)
673 if (led < 0) {
678 led *= -1;
682 if (state->led_state != led) {
685 dprintk("%s: %d\n", __func__, led);
697 if (led < led_config->num_led_states)
698 val |= led_config->led_states[led];
708 state->led_state = led;
710 if (led == 0)
731 /* turn off led */
803 int led;
820 led = 2;
822 led = 1;
827 * changing the color of the led */
830 return au8522_led_ctrl(state, led);