rtl8192e: create generic rtllib_debug.h

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>
This commit is contained in:
Sean MacLennan 2011-11-28 20:19:33 -05:00 committed by Greg Kroah-Hartman
parent f1c602f999
commit ea74fedced
9 changed files with 11 additions and 10 deletions

View File

@ -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)

View File

@ -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"
@ -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"
@ -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))

View File

@ -27,7 +27,6 @@
#include <linux/types.h>
#include <linux/pci.h>
#include "rtllib.h"
static inline void NdisRawWritePortUlong(u32 port, u32 val)
{

View File

@ -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

View File

@ -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"

View File

@ -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;

View File

@ -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;

View File

@ -15,7 +15,6 @@
#include "rtllib.h"
#include "rtl_core.h"
#include <linux/random.h>
#include <linux/delay.h>

View File

@ -15,7 +15,6 @@
#include "rtllib.h"
#include "rtl_core.h"
#include "dot11d.h"
/* FIXME: add A freqs */