staging: brcm80211: removed wl_dbg.h
authorRoland Vossen <rvossen@broadcom.com>
Wed, 1 Jun 2011 11:45:46 +0000 (13:45 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 7 Jun 2011 19:40:22 +0000 (12:40 -0700)
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>
12 files changed:
drivers/staging/brcm80211/brcmsmac/brcms_mac80211.c
drivers/staging/brcm80211/brcmsmac/wl_dbg.h [deleted file]
drivers/staging/brcm80211/brcmsmac/wlc_alloc.c
drivers/staging/brcm80211/brcmsmac/wlc_ampdu.c
drivers/staging/brcm80211/brcmsmac/wlc_antsel.c
drivers/staging/brcm80211/brcmsmac/wlc_bmac.c
drivers/staging/brcm80211/brcmsmac/wlc_channel.c
drivers/staging/brcm80211/brcmsmac/wlc_main.c
drivers/staging/brcm80211/brcmsmac/wlc_phy_shim.c
drivers/staging/brcm80211/brcmsmac/wlc_rate.c
drivers/staging/brcm80211/brcmsmac/wlc_stf.c
drivers/staging/brcm80211/brcmsmac/wlc_types.h

index 8eadb4365fa23bd82d37e3ea5af845e0e2f7275f..2c239cf566b798c89c0699d67eafb4db6430e2f7 100644 (file)
@@ -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"
diff --git a/drivers/staging/brcm80211/brcmsmac/wl_dbg.h b/drivers/staging/brcm80211/brcmsmac/wl_dbg.h
deleted file mode 100644 (file)
index 253c464..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright (c) 2010 Broadcom Corporation
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
- * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
- * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
- * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-#ifndef _wl_dbg_h_
-#define _wl_dbg_h_
-
-#include <linux/device.h>                      /* dev_err() */
-
-/* brcm_msg_level is a bit vector with defs in bcmdefs.h */
-extern u32 brcm_msg_level;
-
-#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)
-
-#endif                         /* _wl_dbg_h_ */
index 218210ad01daf51e2bdfe794250f73bfe7705cec..619247a862507d302903ef8b10f024096e69ff6b 100644 (file)
@@ -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"
index 0c325c71bd22ae0f0f3d583f589d3b8856c96ac6..61d472219215eb79309b29d2256c9f801ff814b9 100644 (file)
@@ -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"
index fba9eaf8bbafda37d2a502cace9f91e174c83c9e..dcedcc21235a3f0e75ea30eadd695534a3fa9f08 100644 (file)
@@ -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"
index 57c6e8a03fcdffe587f49d6f4ca1f0e76c836dbc..228b02d9598fd7a847700df6614aab10066dc5f0 100644 (file)
@@ -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 */
index cd379713cf2107a9acf0b4c72a2bd2b5f0ee34af..d1e764a28add463cd4c7699b3f1772ba2841bffb 100644 (file)
@@ -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) \
index d5ba632c676767470cc1a4b4314f0c03ee62f0e8..f95a6d077aa1f76d5d31e9a2c2a216bbfb63e231 100644 (file)
@@ -48,7 +48,6 @@
 #include "wlc_ampdu.h"
 #include "wl_export.h"
 #include "wlc_alloc.h"
-#include "wl_dbg.h"
 #include "brcms_mac80211.h"
 
 /*
index ba5d67e51e9ae15841d9307d1d7b2de7e034e957..a090ee2e92a47a054bdee175901acf0db92eedc2 100644 (file)
@@ -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"
index d6eae1f6a64ce0a9dedcd135b4d1f188e3eaa423..88aa134ad67aefde877acc1bd76a10a1c87390c8 100644 (file)
@@ -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"
index 8fb90d4057b5d7f208921ee8a45b249587dc601c..d4fb6e4eb861a486b820f0eb43a505b15a51f1b3 100644 (file)
@@ -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"
index 775d0138615dc3c6caf110181204a8f14a08b6bb..383a747144c121896814df436d9243dd18070c3b 100644 (file)
 
 #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;
@@ -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_ */