Staging: wavelan: fix macros, spaces and TAB coding style issue in wavelan_cs.p.h

This is a patch  to the wavelan.h file that fixed up a TAB and
spaces Errors found by the checkpatch.pl tools, like
	ERROR: spaces required around that '=' (ctx:VxV)
and
	ERROR: space required before the open brace '{'
and
	Macros complex expr -> (complex expr)

Signed-off-by: Ruslan Pisarev <ruslan@rpisarev.org.ua>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Ruslan Pisarev
2010-03-15 16:05:09 +02:00
committed by Greg Kroah-Hartman
parent b2561f2122
commit fb549675ff

View File

@@ -514,12 +514,12 @@ static const char *version = "wavelan_cs.c : v24 (SMP + wireless extensions) 11/
/* ------------------------ PRIVATE IOCTL ------------------------ */ /* ------------------------ PRIVATE IOCTL ------------------------ */
#define SIOCSIPQTHR SIOCIWFIRSTPRIV /* Set quality threshold */ #define SIOCSIPQTHR SIOCIWFIRSTPRIV /* Set quality threshold */
#define SIOCGIPQTHR SIOCIWFIRSTPRIV + 1 /* Get quality threshold */ #define SIOCGIPQTHR (SIOCIWFIRSTPRIV + 1) /* Get quality threshold */
#define SIOCSIPROAM SIOCIWFIRSTPRIV + 2 /* Set roaming state */ #define SIOCSIPROAM (SIOCIWFIRSTPRIV + 2) /* Set roaming state */
#define SIOCGIPROAM SIOCIWFIRSTPRIV + 3 /* Get roaming state */ #define SIOCGIPROAM (SIOCIWFIRSTPRIV + 3) /* Get roaming state */
#define SIOCSIPHISTO SIOCIWFIRSTPRIV + 4 /* Set histogram ranges */ #define SIOCSIPHISTO (SIOCIWFIRSTPRIV + 4) /* Set histogram ranges */
#define SIOCGIPHISTO SIOCIWFIRSTPRIV + 5 /* Get histogram values */ #define SIOCGIPHISTO (SIOCIWFIRSTPRIV + 5) /* Get histogram values */
/*************************** WaveLAN Roaming **************************/ /*************************** WaveLAN Roaming **************************/
#ifdef WAVELAN_ROAMING /* Conditional compile, see above in options */ #ifdef WAVELAN_ROAMING /* Conditional compile, see above in options */
@@ -532,13 +532,12 @@ static const char *version = "wavelan_cs.c : v24 (SMP + wireless extensions) 11/
#define SEARCH_THRESH_LOW 10 /* SNR to enter cell search */ #define SEARCH_THRESH_LOW 10 /* SNR to enter cell search */
#define SEARCH_THRESH_HIGH 13 /* SNR to leave cell search */ #define SEARCH_THRESH_HIGH 13 /* SNR to leave cell search */
#define WAVELAN_ROAMING_DELTA 1 /* Hysteresis value (+/- SNR) */ #define WAVELAN_ROAMING_DELTA 1 /* Hysteresis value (+/- SNR) */
#define CELL_TIMEOUT 2*HZ /* in jiffies */ #define CELL_TIMEOUT (2*HZ) /* in jiffies */
#define FAST_CELL_SEARCH 1 /* Boolean values... */ #define FAST_CELL_SEARCH 1 /* Boolean values... */
#define NWID_PROMISC 1 /* for code clarity. */ #define NWID_PROMISC 1 /* for code clarity. */
typedef struct wavepoint_beacon typedef struct wavepoint_beacon {
{
unsigned char dsap, /* Unused */ unsigned char dsap, /* Unused */
ssap, /* Unused */ ssap, /* Unused */
ctrl, /* Unused */ ctrl, /* Unused */
@@ -551,8 +550,7 @@ typedef struct wavepoint_beacon
nwid; /* WavePoint NWID */ nwid; /* WavePoint NWID */
} wavepoint_beacon; } wavepoint_beacon;
typedef struct wavepoint_history typedef struct wavepoint_history {
{
unsigned short nwid; /* WavePoint's NWID */ unsigned short nwid; /* WavePoint's NWID */
int average_slow; /* SNR running average */ int average_slow; /* SNR running average */
int average_fast; /* SNR running average */ int average_fast; /* SNR running average */
@@ -564,8 +562,7 @@ typedef struct wavepoint_history
unsigned long last_seen; /* Time of last beacon recvd, jiffies */ unsigned long last_seen; /* Time of last beacon recvd, jiffies */
} wavepoint_history; } wavepoint_history;
struct wavepoint_table struct wavepoint_table {
{
wavepoint_history *head; /* Start of ringbuffer */ wavepoint_history *head; /* Start of ringbuffer */
int num_wavepoints; /* No. of WavePoints visible */ int num_wavepoints; /* No. of WavePoints visible */
unsigned char locked; /* Table lock */ unsigned char locked; /* Table lock */
@@ -592,8 +589,7 @@ typedef u_char mac_addr[WAVELAN_ADDR_SIZE]; /* Hardware address */
* keep the generic data (same format for everybody) and "net_local" keep * keep the generic data (same format for everybody) and "net_local" keep
* the additional specific data. * the additional specific data.
*/ */
struct net_local struct net_local {
{
dev_node_t node; /* ???? What is this stuff ???? */ dev_node_t node; /* ???? What is this stuff ???? */
struct net_device *dev; /* Reverse link... */ struct net_device *dev; /* Reverse link... */
spinlock_t spinlock; /* Serialize access to the hardware (SMP) */ spinlock_t spinlock; /* Serialize access to the hardware (SMP) */