Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ruslan Pisarev and committed by
Greg Kroah-Hartman
fb549675 b2561f21

+17 -21
+17 -21
drivers/staging/wavelan/wavelan_cs.p.h
··· 123 123 * writing a Wavelan ISA driver for the MACH microkernel. Girish 124 124 * Welling <welling@paul.rutgers.edu> had also worked on it. 125 125 * Keith Moore modify this for the Pcmcia hardware. 126 - * 126 + * 127 127 * Robert Morris <rtm@das.harvard.edu> port these two drivers to BSDI 128 128 * and add specific Pcmcia support (there is currently no equivalent 129 129 * of the PCMCIA package under BSD...). ··· 283 283 * Changes made in sixth release (2.9.1a) : 284 284 * -------------------------------------- 285 285 * - Change the detection code for multi manufacturer code support 286 - * - Correct bug (hang kernel) in init when we were "rejecting" a card 286 + * - Correct bug (hang kernel) in init when we were "rejecting" a card 287 287 * 288 288 * Changes made in seventh release (2.9.1b) : 289 289 * ---------------------------------------- ··· 514 514 /* ------------------------ PRIVATE IOCTL ------------------------ */ 515 515 516 516 #define SIOCSIPQTHR SIOCIWFIRSTPRIV /* Set quality threshold */ 517 - #define SIOCGIPQTHR SIOCIWFIRSTPRIV + 1 /* Get quality threshold */ 518 - #define SIOCSIPROAM SIOCIWFIRSTPRIV + 2 /* Set roaming state */ 519 - #define SIOCGIPROAM SIOCIWFIRSTPRIV + 3 /* Get roaming state */ 517 + #define SIOCGIPQTHR (SIOCIWFIRSTPRIV + 1) /* Get quality threshold */ 518 + #define SIOCSIPROAM (SIOCIWFIRSTPRIV + 2) /* Set roaming state */ 519 + #define SIOCGIPROAM (SIOCIWFIRSTPRIV + 3) /* Get roaming state */ 520 520 521 - #define SIOCSIPHISTO SIOCIWFIRSTPRIV + 4 /* Set histogram ranges */ 522 - #define SIOCGIPHISTO SIOCIWFIRSTPRIV + 5 /* Get histogram values */ 521 + #define SIOCSIPHISTO (SIOCIWFIRSTPRIV + 4) /* Set histogram ranges */ 522 + #define SIOCGIPHISTO (SIOCIWFIRSTPRIV + 5) /* Get histogram values */ 523 523 524 524 /*************************** WaveLAN Roaming **************************/ 525 525 #ifdef WAVELAN_ROAMING /* Conditional compile, see above in options */ ··· 532 532 #define SEARCH_THRESH_LOW 10 /* SNR to enter cell search */ 533 533 #define SEARCH_THRESH_HIGH 13 /* SNR to leave cell search */ 534 534 #define WAVELAN_ROAMING_DELTA 1 /* Hysteresis value (+/- SNR) */ 535 - #define CELL_TIMEOUT 2*HZ /* in jiffies */ 535 + #define CELL_TIMEOUT (2*HZ) /* in jiffies */ 536 536 537 537 #define FAST_CELL_SEARCH 1 /* Boolean values... */ 538 538 #define NWID_PROMISC 1 /* for code clarity. */ 539 539 540 - typedef struct wavepoint_beacon 541 - { 540 + typedef struct wavepoint_beacon { 542 541 unsigned char dsap, /* Unused */ 543 542 ssap, /* Unused */ 544 543 ctrl, /* Unused */ 545 - O,U,I, /* Unused */ 544 + O, U, I, /* Unused */ 546 545 spec_id1, /* Unused */ 547 546 spec_id2, /* Unused */ 548 547 pdu_type, /* Unused */ ··· 550 551 nwid; /* WavePoint NWID */ 551 552 } wavepoint_beacon; 552 553 553 - typedef struct wavepoint_history 554 - { 554 + typedef struct wavepoint_history { 555 555 unsigned short nwid; /* WavePoint's NWID */ 556 556 int average_slow; /* SNR running average */ 557 557 int average_fast; /* SNR running average */ ··· 562 564 unsigned long last_seen; /* Time of last beacon recvd, jiffies */ 563 565 } wavepoint_history; 564 566 565 - struct wavepoint_table 566 - { 567 + struct wavepoint_table { 567 568 wavepoint_history *head; /* Start of ringbuffer */ 568 569 int num_wavepoints; /* No. of WavePoints visible */ 569 570 unsigned char locked; /* Table lock */ ··· 589 592 * keep the generic data (same format for everybody) and "net_local" keep 590 593 * the additional specific data. 591 594 */ 592 - struct net_local 593 - { 595 + struct net_local { 594 596 dev_node_t node; /* ???? What is this stuff ???? */ 595 - struct net_device * dev; /* Reverse link... */ 597 + struct net_device *dev; /* Reverse link... */ 596 598 spinlock_t spinlock; /* Serialize access to the hardware (SMP) */ 597 - struct pcmcia_device * link; /* pcmcia structure */ 599 + struct pcmcia_device *link; /* pcmcia structure */ 598 600 int nresets; /* Number of hw resets */ 599 601 u_char configured; /* If it is configured */ 600 602 u_char reconfig_82593; /* Need to reconfigure the controller */ ··· 619 623 u_long domain_id; /* Domain ID we lock on for roaming */ 620 624 int filter_domains; /* Check Domain ID of beacon found */ 621 625 struct wavepoint_table wavepoint_table; /* Table of visible WavePoints*/ 622 - wavepoint_history * curr_point; /* Current wavepoint */ 626 + wavepoint_history *curr_point; /* Current wavepoint */ 623 627 int cell_search; /* Searching for new cell? */ 624 628 struct timer_list cell_timer; /* Garbage collection */ 625 629 #endif /* WAVELAN_ROAMING */ ··· 669 673 int); /* number of registers */ 670 674 /* ---------------------- I82593 SUBROUTINES ----------------------- */ 671 675 static int 672 - wv_82593_cmd(struct net_device *, /* synchronously send a command to i82593 */ 676 + wv_82593_cmd(struct net_device *, /* synchronously send a command to i82593 */ 673 677 char *, 674 678 int, 675 679 int);