Search Linux Wireless

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux