Staging: wavelan: fix spaces and TAB coding style and macros issue in wavelan.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 with complex values should be enclosed in parenthesis

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 14:58:01 +02:00
committed by Greg Kroah-Hartman
parent a0ec962061
commit 604ef85819

View File

@@ -451,17 +451,18 @@ static const char *version = "wavelan.c : v24 (SMP + wireless extensions) 11/12/
/* ------------------------ 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 SIOCSIPHISTO SIOCIWFIRSTPRIV + 2 /* Set histogram ranges */ #define SIOCSIPHISTO (SIOCIWFIRSTPRIV + 2) /* Set histogram ranges */
#define SIOCGIPHISTO SIOCIWFIRSTPRIV + 3 /* Get histogram values */ #define SIOCGIPHISTO (SIOCIWFIRSTPRIV + 3) /* Get histogram values */
/****************************** TYPES ******************************/ /****************************** TYPES ******************************/
/* Shortcuts */ /* Shortcuts */
typedef struct iw_statistics iw_stats; typedef struct iw_statistics iw_stats;
typedef struct iw_quality iw_qual; typedef struct iw_quality iw_qual;
typedef struct iw_freq iw_freq;typedef struct net_local net_local; typedef struct iw_freq iw_freq;
typedef struct net_local net_local;
typedef struct timer_list timer_list; typedef struct timer_list timer_list;
/* Basic types */ /* Basic types */
@@ -474,8 +475,7 @@ typedef u_char mac_addr[WAVELAN_ADDR_SIZE]; /* Hardware address */
* keeps the generic data (same format for everybody) and "net_local" keeps * keeps the generic data (same format for everybody) and "net_local" keeps
* additional specific data. * additional specific data.
*/ */
struct net_local struct net_local {
{
net_local *next; /* linked list of the devices */ net_local *next; /* linked list of the devices */
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) */
@@ -654,8 +654,7 @@ static net_local * wavelan_list = (net_local *) NULL;
* This table is used to translate the PSA value to IRQ number * This table is used to translate the PSA value to IRQ number
* and vice versa. * and vice versa.
*/ */
static u_char irqvals[] = static u_char irqvals[] = {
{
0, 0, 0, 0x01, 0, 0, 0, 0x01,
0x02, 0x04, 0, 0x08, 0x02, 0x04, 0, 0x08,
0, 0, 0x10, 0x20, 0, 0, 0x10, 0x20,
@@ -665,8 +664,7 @@ static u_char irqvals[] =
/* /*
* Table of the available I/O addresses (base addresses) for WaveLAN * Table of the available I/O addresses (base addresses) for WaveLAN
*/ */
static unsigned short iobase[] = static unsigned short iobase[] = {
{
#if 0 #if 0
/* Leave out 0x3C0 for now -- seems to clash with some video /* Leave out 0x3C0 for now -- seems to clash with some video
* controllers. * controllers.