2022-01-22 01:59:47

by Luiz Sampaio

[permalink] [raw]
Subject: [PATCH 15/31] net: wireless: atmel: changing LED_* from enum led_brightness to actual value

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.
---
drivers/net/wireless/atmel/at76c50x-usb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/atmel/at76c50x-usb.c b/drivers/net/wireless/atmel/at76c50x-usb.c
index 7582761c61e2..3847c59b9672 100644
--- a/drivers/net/wireless/atmel/at76c50x-usb.c
+++ b/drivers/net/wireless/atmel/at76c50x-usb.c
@@ -523,10 +523,10 @@ static void at76_ledtrig_tx_timerfunc(struct timer_list *unused)

if (tx_lastactivity != tx_activity) {
tx_lastactivity = tx_activity;
- led_trigger_event(ledtrig_tx, LED_FULL);
+ led_trigger_event(ledtrig_tx, 255);
mod_timer(&ledtrig_tx_timer, jiffies + HZ / 4);
} else
- led_trigger_event(ledtrig_tx, LED_OFF);
+ led_trigger_event(ledtrig_tx, 0);
}

static void at76_ledtrig_tx_activity(void)
--
2.34.1