Commit b2561f21 authored by Ruslan Pisarev's avatar Ruslan Pisarev Committed by Greg Kroah-Hartman

Staging: wavelan: fix spaces and TAB coding style issue in wavelan_cs.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 '{'
Signed-off-by: default avatarRuslan Pisarev <ruslan@rpisarev.org.ua>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 604ef858
...@@ -62,8 +62,7 @@ ...@@ -62,8 +62,7 @@
* like DEC RoamAbout, or Digital Ocean, Epson, ...), you must modify this * like DEC RoamAbout, or Digital Ocean, Epson, ...), you must modify this
* part to accommodate your hardware... * part to accommodate your hardware...
*/ */
static const unsigned char MAC_ADDRESSES[][3] = static const unsigned char MAC_ADDRESSES[][3] = {
{
{ 0x08, 0x00, 0x0E }, /* AT&T Wavelan (standard) & DEC RoamAbout */ { 0x08, 0x00, 0x0E }, /* AT&T Wavelan (standard) & DEC RoamAbout */
{ 0x08, 0x00, 0x6A }, /* AT&T Wavelan (alternate) */ { 0x08, 0x00, 0x6A }, /* AT&T Wavelan (alternate) */
{ 0x00, 0x00, 0xE1 }, /* Hitachi Wavelan */ { 0x00, 0x00, 0xE1 }, /* Hitachi Wavelan */
...@@ -171,8 +170,7 @@ static const int fixed_bands[] = { 915e6, 2.425e8, 2.46e8, 2.484e8, 2.4305e8 }; ...@@ -171,8 +170,7 @@ static const int fixed_bands[] = { 915e6, 2.425e8, 2.46e8, 2.484e8, 2.4305e8 };
* Parameter Storage Area (PSA). * Parameter Storage Area (PSA).
*/ */
typedef struct psa_t psa_t; typedef struct psa_t psa_t;
struct psa_t struct psa_t {
{
/* For the PCMCIA Adapter, locations 0x00-0x0F are unused and fixed at 00 */ /* For the PCMCIA Adapter, locations 0x00-0x0F are unused and fixed at 00 */
unsigned char psa_io_base_addr_1; /* [0x00] Base address 1 ??? */ unsigned char psa_io_base_addr_1; /* [0x00] Base address 1 ??? */
unsigned char psa_io_base_addr_2; /* [0x01] Base address 2 */ unsigned char psa_io_base_addr_2; /* [0x01] Base address 2 */
...@@ -225,7 +223,7 @@ struct psa_t ...@@ -225,7 +223,7 @@ struct psa_t
/* Calculate offset of a field in the above structure /* Calculate offset of a field in the above structure
* Warning : only even addresses are used */ * Warning : only even addresses are used */
#define psaoff(p,f) ((unsigned short) ((void *)(&((psa_t *) ((void *) NULL + (p)))->f) - (void *) NULL)) #define psaoff(p, f) ((unsigned short) ((void *)(&((psa_t *) ((void *) NULL + (p)))->f) - (void *) NULL))
/******************** MODEM MANAGEMENT INTERFACE ********************/ /******************** MODEM MANAGEMENT INTERFACE ********************/
...@@ -233,8 +231,7 @@ struct psa_t ...@@ -233,8 +231,7 @@ struct psa_t
* Modem Management Controller (MMC) write structure. * Modem Management Controller (MMC) write structure.
*/ */
typedef struct mmw_t mmw_t; typedef struct mmw_t mmw_t;
struct mmw_t struct mmw_t {
{
unsigned char mmw_encr_key[8]; /* encryption key */ unsigned char mmw_encr_key[8]; /* encryption key */
unsigned char mmw_encr_enable; /* enable/disable encryption */ unsigned char mmw_encr_enable; /* enable/disable encryption */
#define MMW_ENCR_ENABLE_MODE 0x02 /* Mode of security option */ #define MMW_ENCR_ENABLE_MODE 0x02 /* Mode of security option */
...@@ -315,15 +312,14 @@ struct mmw_t ...@@ -315,15 +312,14 @@ struct mmw_t
#define MMW_SIZE 37 #define MMW_SIZE 37
/* Calculate offset of a field in the above structure */ /* Calculate offset of a field in the above structure */
#define mmwoff(p,f) (unsigned short)((void *)(&((mmw_t *)((void *)0 + (p)))->f) - (void *)0) #define mmwoff(p, f) (unsigned short)((void *)(&((mmw_t *)((void *)0 + (p)))->f) - (void *)0)
/* /*
* Modem Management Controller (MMC) read structure. * Modem Management Controller (MMC) read structure.
*/ */
typedef struct mmr_t mmr_t; typedef struct mmr_t mmr_t;
struct mmr_t struct mmr_t {
{
unsigned char mmr_unused0[8]; /* unused */ unsigned char mmr_unused0[8]; /* unused */
unsigned char mmr_des_status; /* encryption status */ unsigned char mmr_des_status; /* encryption status */
unsigned char mmr_des_avail; /* encryption available (0x55 read) */ unsigned char mmr_des_avail; /* encryption available (0x55 read) */
...@@ -373,12 +369,11 @@ struct mmr_t ...@@ -373,12 +369,11 @@ struct mmr_t
#define MMR_SIZE 36 #define MMR_SIZE 36
/* Calculate offset of a field in the above structure */ /* Calculate offset of a field in the above structure */
#define mmroff(p,f) (unsigned short)((void *)(&((mmr_t *)((void *)0 + (p)))->f) - (void *)0) #define mmroff(p, f) (unsigned short)((void *)(&((mmr_t *)((void *)0 + (p)))->f) - (void *)0)
/* Make the two above structures one */ /* Make the two above structures one */
typedef union mm_t typedef union mm_t {
{
struct mmw_t w; /* Write to the mmc */ struct mmw_t w; /* Write to the mmc */
struct mmr_t r; /* Read from the mmc */ struct mmr_t r; /* Read from the mmc */
} mm_t; } mm_t;
......
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