Staging: wavelan: fix spaces and TAB coding style issue in wavelan.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: 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:45:27 +02:00
committed by Greg Kroah-Hartman
parent cebb7e8336
commit a0ec962061

View File

@@ -26,8 +26,7 @@
* product (OEM, like DEC RoamAbout, Digital Ocean, or Epson), * product (OEM, like DEC RoamAbout, Digital Ocean, or Epson),
* you might need to modify this part to accommodate your hardware. * you might need to modify this part to accommodate your hardware.
*/ */
static const char MAC_ADDRESSES[][3] = static const 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 */
@@ -67,8 +66,7 @@ static const int fixed_bands[] = { 915e6, 2.425e8, 2.46e8, 2.484e8, 2.4305e8 };
* (base is board port address). * (base is board port address).
*/ */
typedef union hacs_u hacs_u; typedef union hacs_u hacs_u;
union hacs_u union hacs_u {
{
unsigned short hu_command; /* Command register */ unsigned short hu_command; /* Command register */
#define HACR_RESET 0x0001 /* Reset board */ #define HACR_RESET 0x0001 /* Reset board */
#define HACR_CA 0x0002 /* Set Channel Attention for 82586 */ #define HACR_CA 0x0002 /* Set Channel Attention for 82586 */
@@ -88,8 +86,7 @@ union hacs_u
} __attribute__ ((packed)); } __attribute__ ((packed));
typedef struct ha_t ha_t; typedef struct ha_t ha_t;
struct ha_t struct ha_t {
{
hacs_u ha_cs; /* Command and status registers */ hacs_u ha_cs; /* Command and status registers */
#define ha_command ha_cs.hu_command #define ha_command ha_cs.hu_command
#define ha_status ha_cs.hu_status #define ha_status ha_cs.hu_status
@@ -156,8 +153,7 @@ struct ha_t
* 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 {
{
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 */
unsigned char psa_io_base_addr_3; /* [0x02] Base address 3 */ unsigned char psa_io_base_addr_3; /* [0x02] Base address 3 */
@@ -216,8 +212,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 or disable encryption. */ unsigned char mmw_encr_enable; /* Enable or disable encryption. */
#define MMW_ENCR_ENABLE_MODE 0x02 /* mode of security option */ #define MMW_ENCR_ENABLE_MODE 0x02 /* mode of security option */
@@ -302,8 +297,7 @@ struct mmw_t
* 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) */
@@ -354,8 +348,7 @@ struct mmr_t
#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;