b43: LED triggers support
PATCH 1/1 b43: LED triggers support
Drive the LEDs through the generic LED triggers.
Signed-off-by Michael Buesch <[email protected]>
Cc Larry Finger <[email protected]>
drivers/net/wireless/b43/Kconfig +6 -0
@@ -61,6 +61,12 @@ config B43_PCMCIA If unsure, say N. +# LED support +config B43_LEDS + bool + depends on MAC80211_LEDS + default y + config B43_DEBUG bool "Broadcom 43xx debugging" depends on B43
drivers/net/wireless/b43/Makefile +2 -1
@@ -3,9 +3,10 @@ b43-y += main.o b43-y += tables.o b43-y += phy.o b43-y += sysfs.o -b43-y += leds.o b43-y += xmit.o b43-y += lo.o +# b43 LED support +b43-$(CONFIG_B43_LEDS) += leds.o # b43 PCMCIA support b43-$(CONFIG_B43_PCMCIA) += pcmcia.o # b43 debugging
drivers/net/wireless/b43/b43.h +4 -2
@@ -707,8 +707,10 @@ struct b43_wldev {/* Various statistics about the physical device. */ struct b43_stats stats; -#define B43_NR_LEDS 4 -struct b43_led leds[B43_NR_LEDS ]; +/* The device LEDs. */ +struct b43_led led_tx; +struct b43_led led_rx; +struct b43_led led_assoc;/* Reason code of the last interrupt. */ u32 irq_reason;
drivers/net/wireless/b43/leds.c +166 -233
450 lines not on this page · raw message
drivers/net/wireless/b43/leds.h +36 -27
85 lines not on this page · raw message
drivers/net/wireless/b43/main.c +17 -34
149 lines not on this page · raw message