Skip to content

Commit

Permalink
staging: r8712u: Remove defines that are not used
Browse files Browse the repository at this point in the history
This driver has a number of defines, etc. that are not used.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Larry Finger authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent 5ca136a commit 73ee07f
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 91 deletions.
9 changes: 0 additions & 9 deletions drivers/staging/rtl8712/drv_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ struct qos_priv {
#include "rtl871x_event.h"
#include "rtl871x_led.h"

#define SPEC_DEV_ID_NONE BIT(0)
#define SPEC_DEV_ID_DISABLE_HT BIT(1)
#define SPEC_DEV_ID_ENABLE_PS BIT(2)

struct specific_device_id {
u32 flags;
Expand Down Expand Up @@ -127,13 +125,6 @@ struct registry_priv {
u8 wifi_test;
};

/* For registry parameters */
#define RGTRY_OFT(field) ((addr_t)FIELD_OFFSET(struct registry_priv, field))
#define RGTRY_SZ(field) sizeof(((struct registry_priv *)0)->field)
#define BSSID_OFT(field) ((addr_t)FIELD_OFFSET(struct ndis_wlan_bssid_ex, \
field))
#define BSSID_SZ(field) sizeof(((struct ndis_wlan_bssid_ex *)0)->field)

struct dvobj_priv {
struct _adapter *padapter;
u32 nr_endpoint;
Expand Down
20 changes: 0 additions & 20 deletions drivers/staging/rtl8712/rtl871x_pwrctrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,7 @@
#include "drv_types.h"


#define FW_PWR0 0
#define FW_PWR1 1
#define FW_PWR2 2
#define FW_PWR3 3


#define HW_PWR0 7
#define HW_PWR1 6
#define HW_PWR2 2
#define HW_PWR3 0
#define HW_PWR4 8

#define FW_PWRMSK 0x7


#define XMIT_ALIVE BIT(0)
#define RECV_ALIVE BIT(1)
#define CMD_ALIVE BIT(2)
#define EVT_ALIVE BIT(3)


enum Power_Mgnt {
PS_MODE_ACTIVE = 0 ,
Expand All @@ -66,7 +47,6 @@ enum Power_Mgnt {
PS_MODE_NUM
};


/*
BIT[2:0] = HW state
BIT[3] = Protocol PS state, 0: register active state,
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/rtl8712/usb_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include "recv_osdep.h"
#include "xmit_osdep.h"
#include "rtl8712_efuse.h"
#include "usb_vendor_req.h"
#include "usb_ops.h"
#include "usb_osintf.h"

Expand Down
3 changes: 0 additions & 3 deletions drivers/staging/rtl8712/usb_osintf.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@

#include "osdep_service.h"
#include "drv_types.h"
#include "usb_vendor_req.h"

#define USBD_HALTED(Status) ((u32)(Status) >> 30 == 3)

extern char *r8712_initmac;

Expand Down
58 changes: 0 additions & 58 deletions drivers/staging/rtl8712/usb_vendor_req.h

This file was deleted.

0 comments on commit 73ee07f

Please sign in to comment.