The enum led_brightness, which contains the declaration of LED_OFF, LED_ON, LED_HALF and LED_FULL is obsolete, as the led class now supports max_brightness. --- net/netfilter/xt_LED.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/netfilter/xt_LED.c b/net/netfilter/xt_LED.c index 0371c387b0d1..eb66e12c7ff7 100644 --- a/net/netfilter/xt_LED.c +++ b/net/netfilter/xt_LED.c @@ -54,7 +54,7 @@ led_tg(struct sk_buff *skb, const struct xt_action_param *par) led_trigger_blink_oneshot(&ledinternal->netfilter_led_trigger, &led_delay, &led_delay, 1); else - led_trigger_event(&ledinternal->netfilter_led_trigger, LED_FULL); + led_trigger_event(&ledinternal->netfilter_led_trigger, 255); /* If there's a positive delay, start/update the timer */ if (ledinfo->delay > 0) { @@ -63,7 +63,7 @@ led_tg(struct sk_buff *skb, const struct xt_action_param *par) /* Otherwise if there was no delay given, blink as fast as possible */ } else if (ledinfo->delay == 0) { - led_trigger_event(&ledinternal->netfilter_led_trigger, LED_OFF); + led_trigger_event(&ledinternal->netfilter_led_trigger, 0); } /* else the delay is negative, which means switch on and stay on */ @@ -76,7 +76,7 @@ static void led_timeout_callback(struct timer_list *t) struct xt_led_info_internal *ledinternal = from_timer(ledinternal, t, timer); - led_trigger_event(&ledinternal->netfilter_led_trigger, LED_OFF); + led_trigger_event(&ledinternal->netfilter_led_trigger, 0); } static struct xt_led_info_internal *led_trigger_lookup(const char *name) -- 2.34.1