Skip to content

Commit

Permalink
Staging: vt665x: Clean up include files, Part 1
Browse files Browse the repository at this point in the history
Remove cplusplus lines from include files
Remove needless ifdefs on includes to conform with C
conventions.  Remove misc commented code/includes
Update TODO

Signed-off-by: Jim Lieb <lieb@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jim Lieb authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent a884847 commit 9d26d60
Show file tree
Hide file tree
Showing 75 changed files with 10 additions and 1,177 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/vt6656/80211hdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,10 @@
*
*/



#ifndef __80211HDR_H__
#define __80211HDR_H__


#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif

/*--------------------- Export Definitions -------------------------*/
// bit type
Expand Down
16 changes: 0 additions & 16 deletions drivers/staging/vt6656/80211mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,12 @@
*
*/



#if !defined(__TMACRO_H__)
#include "tmacro.h"
#endif
#if !defined(__TETHER_H__)
#include "tether.h"
#endif
#if !defined(__80211MGR_H__)
#include "80211mgr.h"
#endif
#if !defined(__80211HDR_H__)
#include "80211hdr.h"
#endif
#if !defined(__DEVICE_H__)
#include "device.h"
#endif
#if !defined(__WPA_H__)
#include "wpa.h"
#endif



/*--------------------- Static Definitions -------------------------*/

Expand Down
6 changes: 0 additions & 6 deletions drivers/staging/vt6656/80211mgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,11 @@
*
*/


#ifndef __80211MGR_H__
#define __80211MGR_H__

#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif
#if !defined(__80211HDR_H__)
#include "80211hdr.h"
#endif


/*--------------------- Export Definitions -------------------------*/

Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/vt6656/TODO
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
TODO:
- remove __cplusplus ifdefs
- remove __cplusplus ifdefs -- done
- remove kernel version compatibility wrappers
- remove support for older wireless extensions
- prepare for merge with vt6655 driver:
Expand Down
7 changes: 0 additions & 7 deletions drivers/staging/vt6656/aes_ccmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,9 @@
*
*/

#if !defined(__UMEM_H__)
#include "umem.h"
#endif
#if !defined(__DEVICE_H__)
#include "device.h"
#endif
#if !defined(__80211HDR_H__)
#include "80211hdr.h"
#endif


/*--------------------- Static Definitions -------------------------*/

Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/vt6656/aes_ccmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
#ifndef __AES_H__
#define __AES_H__

#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif

/*--------------------- Export Definitions -------------------------*/

Expand Down
23 changes: 0 additions & 23 deletions drivers/staging/vt6656/baseband.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,40 +37,17 @@
*
*/


#if !defined(__TMACRO_H__)
#include "tmacro.h"
#endif
#if !defined(__TBIT_H__)
#include "tbit.h"
#endif
#if !defined(__TETHER_H__)
#include "tether.h"
#endif
#if !defined(__MAC_H__)
#include "mac.h"
#endif
#if !defined(__BASEBAND_H__)
#include "baseband.h"
#endif
#if !defined(__RF_H__)
#include "rf.h"
#endif
#if !defined(__SROM_H__)
#include "srom.h"
#endif
#if !defined(__CONTROL_H__)
#include "control.h"
#endif
#if !defined(__DATARATE_H__)
#include "datarate.h"
#endif
#if !defined(__RNDIS_H__)
#include "rndis.h"
#endif
#if !defined(__CONTROL_H__)
#include "control.h"
#endif

/*--------------------- Static Definitions -------------------------*/
static int msglevel =MSG_LEVEL_INFO;
Expand Down
17 changes: 0 additions & 17 deletions drivers/staging/vt6656/baseband.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,9 @@
#ifndef __BASEBAND_H__
#define __BASEBAND_H__

#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif

#if !defined(__TETHER_H__)
#include "tether.h"
#endif

#if !defined(__DEVICE_H__)
#include "device.h"
#endif


/*--------------------- Export Definitions -------------------------*/

Expand Down Expand Up @@ -104,9 +95,6 @@
/*--------------------- Export Variables --------------------------*/

/*--------------------- Export Functions --------------------------*/
#ifdef __cplusplus
extern "C" { /* Assume C declarations for C++ */
#endif /* __cplusplus */

UINT
BBuGetFrameTime(
Expand Down Expand Up @@ -155,9 +143,4 @@ VOID BBvUpdatePreEDThreshold(
IN BOOL bScanning
);

#ifdef __cplusplus
} /* End of extern "C" { */
#endif /* __cplusplus */


#endif // __BASEBAND_H__
45 changes: 0 additions & 45 deletions drivers/staging/vt6656/bssdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,72 +39,27 @@
*
*/



#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif
#if !defined(__TMACRO_H__)
#include "tmacro.h"
#endif
#if !defined(__TETHER_H__)
#include "tether.h"
#endif
#if !defined(__DEVICE_H__)
#include "device.h"
#endif
#if !defined(__80211HDR_H__)
#include "80211hdr.h"
#endif
#if !defined(__BSSDB_H__)
#include "bssdb.h"
#endif
#if !defined(__WMGR_H__)
#include "wmgr.h"
#endif
#if !defined(__DATARATE_H__)
#include "datarate.h"
#endif
#if !defined(__DESC_H__)
#include "desc.h"
#endif
#if !defined(__WCMD_H__)
#include "wcmd.h"
#endif
#if !defined(__WPA_H__)
#include "wpa.h"
#endif
#if !defined(__BASEBAND_H__)
#include "baseband.h"
#endif
#if !defined(__RF_H__)
#include "rf.h"
#endif
#if !defined(__CARD_H__)
#include "card.h"
#endif
#if !defined(__MAC_H__)
#include "mac.h"
#endif
#if !defined(__WPA2_H__)
#include "wpa2.h"
#endif
#if !defined(__UMEM_H__)
#include "umem.h"
#endif
#if !defined(__TBIT_H__)
#include "tbit.h"
#endif
#if !defined(__CONTROL_H__)
#include "control.h"
#endif
#if !defined(__RNDIS_H__)
#include "rndis.h"
#endif
//DavidWang
#if !defined(__IOWPA_H__)
#include "iowpa.h"
#endif

/*--------------------- Static Definitions -------------------------*/

Expand Down
11 changes: 0 additions & 11 deletions drivers/staging/vt6656/bssdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,11 @@
#ifndef __BSSDB_H__
#define __BSSDB_H__


#include <linux/skbuff.h>

#if !defined(__80211HDR_H__)
#include "80211hdr.h"
#endif
#if !defined(__80211MGR_H__)
#include "80211mgr.h"
#endif
#if !defined(__CARD_H__)
#include "card.h"
#endif
#if !defined(__MIB_H__)
#include "mib.h"
#endif


/*--------------------- Export Definitions -------------------------*/

Expand Down
32 changes: 0 additions & 32 deletions drivers/staging/vt6656/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,53 +45,21 @@
*
*/

#if !defined(__TMACRO_H__)
#include "tmacro.h"
#endif
#if !defined(__CARD_H__)
#include "card.h"
#endif
#if !defined(__TBIT_H__)
#include "tbit.h"
#endif
#if !defined(__BASEBAND_H__)
#include "baseband.h"
#endif
#if !defined(__MAC_H__)
#include "mac.h"
#endif
#if !defined(__DESC_H__)
#include "desc.h"
#endif
#if !defined(__RF_H__)
#include "rf.h"
#endif
#if !defined(__POWER_H__)
#include "power.h"
#endif
#if !defined(__KEY_H__)
#include "key.h"
#endif
#if !defined(__RC4_H__)
#include "rc4.h"
#endif
#if !defined(__COUNTRY_H__)
#include "country.h"
#endif
#if !defined(__UMEM_H__)
#include "umem.h"
#endif
#if !defined(__DATARATE_H__)
#include "datarate.h"
#endif
#if !defined(__RNDIS_H__)
#include "rndis.h"
#endif
#if !defined(__CONTROL_H__)
#include "control.h"
#endif



/*--------------------- Static Definitions -------------------------*/

Expand Down
14 changes: 0 additions & 14 deletions drivers/staging/vt6656/card.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,10 @@
*
*/


#ifndef __CARD_H__
#define __CARD_H__

#if !defined(__TTYPE_H__)
#include "ttype.h"
#endif


/*--------------------- Export Definitions -------------------------*/

Expand Down Expand Up @@ -66,10 +62,6 @@ typedef enum _CARD_OP_MODE {
/*--------------------- Export Variables --------------------------*/

/*--------------------- Export Functions --------------------------*/
#ifdef __cplusplus
extern "C" { /* Assume C declarations for C++ */
#endif /* __cplusplus */


BOOL CARDbSetMediaChannel(PVOID pDeviceHandler, UINT uConnectionChannel);
void CARDvSetRSPINF(PVOID pDeviceHandler, BYTE byBBType);
Expand Down Expand Up @@ -97,12 +89,6 @@ CARDbChannelSwitch (
IN BYTE byCount
);


#ifdef __cplusplus
} /* End of extern "C" { */
#endif /* __cplusplus */


#endif // __CARD_H__


Expand Down
9 changes: 0 additions & 9 deletions drivers/staging/vt6656/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,10 @@
*
*/

#if !defined (_COUNTRY_H_)
#include "country.h"
#endif
#if !defined (_CHANNEL_H_)
#include "channel.h"
#endif
#if !defined(__RF_H__)
#include "rf.h"
#endif
#if !defined(__UMEM_H__)
#include "umem.h"
#endif


/*--------------------- Static Definitions -------------------------*/
static int msglevel =MSG_LEVEL_INFO;
Expand Down
Loading

0 comments on commit 9d26d60

Please sign in to comment.