Skip to content

Commit

Permalink
staging: brcm80211: removed wl_dbg.h
Browse files Browse the repository at this point in the history
Code cleanup. Reducing number of header files. Merged into wlc_types.h.

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Roland Vossen authored and Greg Kroah-Hartman committed Jun 7, 2011
1 parent 5706e3d commit da4ef2a
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 43 deletions.
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmsmac/brcms_mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include "wlc_channel.h"
#include "wlc_scb.h"
#include "wlc_pub.h"
#include "wl_dbg.h"
#include "wl_export.h"
#include "ucode_loader.h"
#include "brcms_mac80211.h"
Expand Down
33 changes: 0 additions & 33 deletions drivers/staging/brcm80211/brcmsmac/wl_dbg.h

This file was deleted.

1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmsmac/wlc_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "wlc_pub.h"
#include "wlc_key.h"
#include "wlc_alloc.h"
#include "wl_dbg.h"
#include "wlc_rate.h"
#include "wlc_bsscfg.h"
#include "phy/wlc_phy_hal.h"
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmsmac/wlc_ampdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "phy/wlc_phy_hal.h"
#include "wlc_antsel.h"
#include "wl_export.h"
#include "wl_dbg.h"
#include "wlc_channel.h"
#include "wlc_main.h"
#include "wlc_ampdu.h"
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmsmac/wlc_antsel.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "wlc_key.h"
#include "wlc_scb.h"
#include "wlc_pub.h"
#include "wl_dbg.h"
#include "phy/wlc_phy_hal.h"
#include "wlc_bmac.h"
#include "wlc_channel.h"
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmsmac/wlc_bmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#include "ucode_loader.h"
#include "wlc_antsel.h"
#include "wlc_alloc.h"
#include "wl_dbg.h"
#include "wlc_bmac.h"

#define TIMER_INTERVAL_WATCHDOG_BMAC 1000 /* watchdog timer, in unit of ms */
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmsmac/wlc_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include "wlc_channel.h"
#include "wlc_main.h"
#include "wlc_stf.h"
#include "wl_dbg.h"

#define VALID_CHANNEL20_DB(wlc, val) wlc_valid_channel20_db((wlc)->cmi, val)
#define VALID_CHANNEL20_IN_BAND(wlc, bandunit, val) \
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmsmac/wlc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#include "wlc_ampdu.h"
#include "wl_export.h"
#include "wlc_alloc.h"
#include "wl_dbg.h"
#include "brcms_mac80211.h"

/*
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmsmac/wlc_phy_shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <wlc_pmu.h>

#include "wlc_types.h"
#include "wl_dbg.h"
#include "wlc_cfg.h"
#include "d11.h"
#include "wlc_rate.h"
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmsmac/wlc_rate.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

#include "wlc_types.h"
#include "d11.h"
#include "wl_dbg.h"
#include "wlc_cfg.h"
#include "wlc_scb.h"
#include "wlc_pub.h"
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/brcm80211/brcmsmac/wlc_stf.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

#include "wlc_types.h"
#include "d11.h"
#include "wl_dbg.h"
#include "wlc_cfg.h"
#include "wlc_rate.h"
#include "wlc_scb.h"
Expand Down
11 changes: 11 additions & 0 deletions drivers/staging/brcm80211/brcmsmac/wlc_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@

#define MAX_DMA_SEGS 4

#define BCMMSG(dev, fmt, args...) \
do { \
if (brcm_msg_level & LOG_TRACE_VAL) \
wiphy_err(dev, "%s: " fmt, __func__, ##args); \
} while (0)

#define WL_ERROR_ON() (brcm_msg_level & LOG_ERROR_VAL)

/* forward declarations */
struct sk_buff;
struct brcms_info;
Expand All @@ -49,4 +57,7 @@ struct wlc_bsscfg;
struct bcmstrbuf;
struct si_pub;

/* brcm_msg_level is a bit vector with defs in bcmdefs.h */
extern u32 brcm_msg_level;

#endif /* _wlc_types_h_ */

0 comments on commit da4ef2a

Please sign in to comment.