Commit ea74fedc authored by Sean MacLennan's avatar Sean MacLennan Committed by Greg Kroah-Hartman

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: default avatarSean MacLennan <seanm@seanm.ca>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f1c602f9
......@@ -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)
......
......@@ -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))
......
......@@ -27,7 +27,6 @@
#include <linux/types.h>
#include <linux/pci.h>
#include "rtllib.h"
static inline void NdisRawWritePortUlong(u32 port, u32 val)
{
......
......@@ -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
......
......@@ -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"
......
......@@ -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;
......
......@@ -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;
......
......@@ -15,7 +15,6 @@
#include "rtllib.h"
#include "rtl_core.h"
#include <linux/random.h>
#include <linux/delay.h>
......
......@@ -15,7 +15,6 @@
#include "rtllib.h"
#include "rtl_core.h"
#include "dot11d.h"
/* FIXME: add A freqs */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment