Skip to content

Commit

Permalink
rtl8192e: create generic rtllib_debug.h
Browse files Browse the repository at this point in the history
Rename rtl_debug.h to rtllib_debug.h. Source files should include
rtllib.h if they are generic and rtl_core.h if they are r8192e
specific. Files should never include both.

Signed-off-by: Sean MacLennan <seanm@seanm.ca>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Sean MacLennan authored and Greg Kroah-Hartman committed Nov 30, 2011
1 parent f1c602f commit ea74fed
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 10 deletions.
1 change: 0 additions & 1 deletion drivers/staging/rtl8192e/rtl819x_BAProc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
******************************************************************************/
#include "rtllib.h"
#include "rtl819x_BA.h"
#include "rtl_core.h"

static void ActivateBAEntry(struct rtllib_device *ieee, struct ba_record *pBA,
u16 Time)
Expand Down
7 changes: 4 additions & 3 deletions drivers/staging/rtl8192e/rtl_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
#include <linux/random.h>
#include <linux/version.h>
#include <linux/io.h>

/* Need this defined before including local include files */
#define DRV_NAME "rtl819xE"

#include "rtllib.h"

#include "dot11d.h"
Expand All @@ -56,7 +60,6 @@
#include "r8190P_def.h"
#include "r8192E_dev.h"

#include "rtl_debug.h"
#include "rtl_eeprom.h"
#include "rtl_ps.h"
#include "rtl_pci.h"
Expand All @@ -67,8 +70,6 @@
#define DRV_AUTHOR "<wlanfae@realtek.com>"
#define DRV_VERSION "0014.0401.2010"

#define DRV_NAME "rtl819xE"

#define IS_HARDWARE_TYPE_819xP(_priv) \
((((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8190P) || \
(((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192E))
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/rtl8192e/rtl_pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

#include <linux/types.h>
#include <linux/pci.h>
#include "rtllib.h"

static inline void NdisRawWritePortUlong(u32 port, u32 val)
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/rtl8192e/rtl_ps.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define _RTL_PS_H

#include <linux/types.h>
#include "rtllib.h"

struct net_device;

#define RT_CHECK_FOR_HANG_PERIOD 2
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/rtl8192e/rtllib.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <linux/delay.h>
#include <linux/wireless.h>

#include "rtllib_debug.h"
#include "rtl819x_HT.h"
#include "rtl819x_BA.h"
#include "rtl819x_TS.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
#ifndef _RTL_DEBUG_H
#define _RTL_DEBUG_H

/* Allow files to override DRV_NAME */
#ifndef DRV_NAME
#define DRV_NAME "rtllib_92e"
#endif

#define DMESG(x, a...)

extern u32 rt_global_debug_component;
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/rtl8192e/rtllib_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@
#include "rtllib.h"


#define DRV_NAME "rtllib_92e"

void _setup_timer(struct timer_list *ptimer, void *fun, unsigned long data)
{
ptimer->function = fun;
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/rtl8192e/rtllib_softmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


#include "rtllib.h"
#include "rtl_core.h"

#include <linux/random.h>
#include <linux/delay.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/rtl8192e/rtllib_softmac_wx.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


#include "rtllib.h"
#include "rtl_core.h"
#include "dot11d.h"
/* FIXME: add A freqs */

Expand Down

0 comments on commit ea74fed

Please sign in to comment.