diff options
author | Andrey Borzenkov <arvidjaar@mail.ru> | 2009-01-25 15:08:43 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-09 15:03:32 -0500 |
commit | d14c7c1d6aef1175625ea72938b07cee072723dc (patch) | |
tree | 95022428783c802a21fcbe27d216e4c4d869b62f /drivers/net/wireless/orinoco/orinoco.h | |
parent | aa6320d336971171df1d13c1c284facf10804881 (diff) |
orinoco: checkpatch cleanup
Fix errors and obvious warnings reported by checkpatch in all files
except orinoco.c. Orinoco.c is part of different patch series of Dave.
Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/orinoco/orinoco.h')
-rw-r--r-- | drivers/net/wireless/orinoco/orinoco.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/net/wireless/orinoco/orinoco.h b/drivers/net/wireless/orinoco/orinoco.h index c653816ef5fe..f3f94b28ce6d 100644 --- a/drivers/net/wireless/orinoco/orinoco.h +++ b/drivers/net/wireless/orinoco/orinoco.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* orinoco.h | 1 | /* orinoco.h |
2 | * | 2 | * |
3 | * Common definitions to all pieces of the various orinoco | 3 | * Common definitions to all pieces of the various orinoco |
4 | * drivers | 4 | * drivers |
5 | */ | 5 | */ |
@@ -18,9 +18,9 @@ | |||
18 | #include "hermes.h" | 18 | #include "hermes.h" |
19 | 19 | ||
20 | /* To enable debug messages */ | 20 | /* To enable debug messages */ |
21 | //#define ORINOCO_DEBUG 3 | 21 | /*#define ORINOCO_DEBUG 3*/ |
22 | 22 | ||
23 | #define WIRELESS_SPY // enable iwspy support | 23 | #define WIRELESS_SPY /* enable iwspy support */ |
24 | 24 | ||
25 | #define MAX_SCAN_LEN 4096 | 25 | #define MAX_SCAN_LEN 4096 |
26 | 26 | ||
@@ -121,7 +121,7 @@ struct orinoco_private { | |||
121 | u16 encode_alg, wep_restrict, tx_key; | 121 | u16 encode_alg, wep_restrict, tx_key; |
122 | struct orinoco_key keys[ORINOCO_MAX_KEYS]; | 122 | struct orinoco_key keys[ORINOCO_MAX_KEYS]; |
123 | int bitratemode; | 123 | int bitratemode; |
124 | char nick[IW_ESSID_MAX_SIZE+1]; | 124 | char nick[IW_ESSID_MAX_SIZE+1]; |
125 | char desired_essid[IW_ESSID_MAX_SIZE+1]; | 125 | char desired_essid[IW_ESSID_MAX_SIZE+1]; |
126 | char desired_bssid[ETH_ALEN]; | 126 | char desired_bssid[ETH_ALEN]; |
127 | int bssid_fixed; | 127 | int bssid_fixed; |
@@ -131,7 +131,7 @@ struct orinoco_private { | |||
131 | u16 pm_on, pm_mcast, pm_period, pm_timeout; | 131 | u16 pm_on, pm_mcast, pm_period, pm_timeout; |
132 | u16 preamble; | 132 | u16 preamble; |
133 | #ifdef WIRELESS_SPY | 133 | #ifdef WIRELESS_SPY |
134 | struct iw_spy_data spy_data; /* iwspy support */ | 134 | struct iw_spy_data spy_data; /* iwspy support */ |
135 | struct iw_public_data wireless_data; | 135 | struct iw_public_data wireless_data; |
136 | #endif | 136 | #endif |
137 | 137 | ||
@@ -168,7 +168,10 @@ struct orinoco_private { | |||
168 | 168 | ||
169 | #ifdef ORINOCO_DEBUG | 169 | #ifdef ORINOCO_DEBUG |
170 | extern int orinoco_debug; | 170 | extern int orinoco_debug; |
171 | #define DEBUG(n, args...) do { if (orinoco_debug>(n)) printk(KERN_DEBUG args); } while(0) | 171 | #define DEBUG(n, args...) do { \ |
172 | if (orinoco_debug > (n)) \ | ||
173 | printk(KERN_DEBUG args); \ | ||
174 | } while (0) | ||
172 | #else | 175 | #else |
173 | #define DEBUG(n, args...) do { } while (0) | 176 | #define DEBUG(n, args...) do { } while (0) |
174 | #endif /* ORINOCO_DEBUG */ | 177 | #endif /* ORINOCO_DEBUG */ |
@@ -185,7 +188,7 @@ extern void free_orinocodev(struct net_device *dev); | |||
185 | extern int __orinoco_up(struct net_device *dev); | 188 | extern int __orinoco_up(struct net_device *dev); |
186 | extern int __orinoco_down(struct net_device *dev); | 189 | extern int __orinoco_down(struct net_device *dev); |
187 | extern int orinoco_reinit_firmware(struct net_device *dev); | 190 | extern int orinoco_reinit_firmware(struct net_device *dev); |
188 | extern irqreturn_t orinoco_interrupt(int irq, void * dev_id); | 191 | extern irqreturn_t orinoco_interrupt(int irq, void *dev_id); |
189 | 192 | ||
190 | /********************************************************************/ | 193 | /********************************************************************/ |
191 | /* Locking and synchronization functions */ | 194 | /* Locking and synchronization functions */ |