Skip to content

Commit

Permalink
[B43]: LED triggers support
Browse files Browse the repository at this point in the history
Drive the LEDs through the generic LED triggers.

Signed-off-by: Michael Buesch <[email protected]>
Cc: Larry Finger <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Michael Buesch authored and David S. Miller committed Oct 10, 2007
1 parent 20405c0 commit 21954c3
Show file tree
Hide file tree
Showing 6 changed files with 229 additions and 295 deletions.
6 changes: 6 additions & 0 deletions drivers/net/wireless/b43/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/wireless/b43/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions drivers/net/wireless/b43/b43.h
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,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;
Expand Down
Loading

0 comments on commit 21954c3

Please sign in to comment.