diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-11-15 18:05:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:46 -0500 |
commit | 1007832103d016d1563fab71d4cf2b057a0bcceb (patch) | |
tree | 3b5080b01bee6e1f98cc9489382c534e963ac748 /drivers/net/wireless/libertas/defs.h | |
parent | 9a62f73b1a3bbd35a6f84fcd6636e672b09981ec (diff) |
libertas: move to uniform lbs_/LBS_ namespace
This patch unifies the namespace of variables, functions defines
and structures. It does:
- rename libertas_XXX to lbs_XXX
- rename LIBERTAS_XXX to lbs_XXX
- rename wlan_XXX to lbs_XXX
- rename WLAN_XXX to LBS_XXX (but only those that were
defined in libertas-local *.h files, e.g. not defines
from net/ieee80211.h)
While passing, I fixed some checkpatch.pl errors too.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/defs.h')
-rw-r--r-- | drivers/net/wireless/libertas/defs.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/drivers/net/wireless/libertas/defs.h b/drivers/net/wireless/libertas/defs.h index 3a0c9beefcf8..81ab99c3f49f 100644 --- a/drivers/net/wireless/libertas/defs.h +++ b/drivers/net/wireless/libertas/defs.h | |||
@@ -2,8 +2,8 @@ | |||
2 | * This header file contains global constant/enum definitions, | 2 | * This header file contains global constant/enum definitions, |
3 | * global variable declaration. | 3 | * global variable declaration. |
4 | */ | 4 | */ |
5 | #ifndef _WLAN_DEFS_H_ | 5 | #ifndef _LBS_DEFS_H_ |
6 | #define _WLAN_DEFS_H_ | 6 | #define _LBS_DEFS_H_ |
7 | 7 | ||
8 | #include <linux/spinlock.h> | 8 | #include <linux/spinlock.h> |
9 | 9 | ||
@@ -41,11 +41,11 @@ | |||
41 | #define LBS_DEB_HEX 0x00200000 | 41 | #define LBS_DEB_HEX 0x00200000 |
42 | #define LBS_DEB_SDIO 0x00400000 | 42 | #define LBS_DEB_SDIO 0x00400000 |
43 | 43 | ||
44 | extern unsigned int libertas_debug; | 44 | extern unsigned int lbs_debug; |
45 | 45 | ||
46 | #ifdef DEBUG | 46 | #ifdef DEBUG |
47 | #define LBS_DEB_LL(grp, grpnam, fmt, args...) \ | 47 | #define LBS_DEB_LL(grp, grpnam, fmt, args...) \ |
48 | do { if ((libertas_debug & (grp)) == (grp)) \ | 48 | do { if ((lbs_debug & (grp)) == (grp)) \ |
49 | printk(KERN_DEBUG DRV_NAME grpnam "%s: " fmt, \ | 49 | printk(KERN_DEBUG DRV_NAME grpnam "%s: " fmt, \ |
50 | in_interrupt() ? " (INT)" : "", ## args); } while (0) | 50 | in_interrupt() ? " (INT)" : "", ## args); } while (0) |
51 | #else | 51 | #else |
@@ -96,8 +96,8 @@ static inline void lbs_deb_hex(unsigned int grp, const char *prompt, u8 *buf, in | |||
96 | int i = 0; | 96 | int i = 0; |
97 | 97 | ||
98 | if (len && | 98 | if (len && |
99 | (libertas_debug & LBS_DEB_HEX) && | 99 | (lbs_debug & LBS_DEB_HEX) && |
100 | (libertas_debug & grp)) | 100 | (lbs_debug & grp)) |
101 | { | 101 | { |
102 | for (i = 1; i <= len; i++) { | 102 | for (i = 1; i <= len; i++) { |
103 | if ((i & 0xf) == 1) { | 103 | if ((i & 0xf) == 1) { |
@@ -138,7 +138,7 @@ static inline void lbs_deb_hex(unsigned int grp, const char *prompt, u8 *buf, in | |||
138 | #define MRVDRV_ASSOCIATION_TIME_OUT 255 | 138 | #define MRVDRV_ASSOCIATION_TIME_OUT 255 |
139 | #define MRVDRV_SNAP_HEADER_LEN 8 | 139 | #define MRVDRV_SNAP_HEADER_LEN 8 |
140 | 140 | ||
141 | #define WLAN_UPLD_SIZE 2312 | 141 | #define LBS_UPLD_SIZE 2312 |
142 | #define DEV_NAME_LEN 32 | 142 | #define DEV_NAME_LEN 32 |
143 | 143 | ||
144 | /** Misc constants */ | 144 | /** Misc constants */ |
@@ -262,12 +262,12 @@ static inline void lbs_deb_hex(unsigned int grp, const char *prompt, u8 *buf, in | |||
262 | #define UNSET_MESH_FRAME(x) (x->cb[6]=0) | 262 | #define UNSET_MESH_FRAME(x) (x->cb[6]=0) |
263 | 263 | ||
264 | /** Global Variable Declaration */ | 264 | /** Global Variable Declaration */ |
265 | typedef struct _wlan_private wlan_private; | 265 | typedef struct _lbs_private lbs_private; |
266 | typedef struct _wlan_adapter wlan_adapter; | 266 | typedef struct _lbs_adapter lbs_adapter; |
267 | extern const char libertas_driver_version[]; | 267 | extern const char lbs_driver_version[]; |
268 | extern u16 libertas_region_code_to_index[MRVDRV_MAX_REGION_CODE]; | 268 | extern u16 lbs_region_code_to_index[MRVDRV_MAX_REGION_CODE]; |
269 | 269 | ||
270 | extern u8 libertas_bg_rates[MAX_RATES]; | 270 | extern u8 lbs_bg_rates[MAX_RATES]; |
271 | 271 | ||
272 | /** ENUM definition*/ | 272 | /** ENUM definition*/ |
273 | /** SNRNF_TYPE */ | 273 | /** SNRNF_TYPE */ |
@@ -284,13 +284,13 @@ enum SNRNF_DATA { | |||
284 | MAX_TYPE_AVG | 284 | MAX_TYPE_AVG |
285 | }; | 285 | }; |
286 | 286 | ||
287 | /** WLAN_802_11_POWER_MODE */ | 287 | /** LBS_802_11_POWER_MODE */ |
288 | enum WLAN_802_11_POWER_MODE { | 288 | enum LBS_802_11_POWER_MODE { |
289 | WLAN802_11POWERMODECAM, | 289 | LBS802_11POWERMODECAM, |
290 | WLAN802_11POWERMODEMAX_PSP, | 290 | LBS802_11POWERMODEMAX_PSP, |
291 | WLAN802_11POWERMODEFAST_PSP, | 291 | LBS802_11POWERMODEFAST_PSP, |
292 | /*not a real mode, defined as an upper bound */ | 292 | /*not a real mode, defined as an upper bound */ |
293 | WLAN802_11POWEMODEMAX | 293 | LBS802_11POWEMODEMAX |
294 | }; | 294 | }; |
295 | 295 | ||
296 | /** PS_STATE */ | 296 | /** PS_STATE */ |
@@ -308,16 +308,16 @@ enum DNLD_STATE { | |||
308 | DNLD_CMD_SENT | 308 | DNLD_CMD_SENT |
309 | }; | 309 | }; |
310 | 310 | ||
311 | /** WLAN_MEDIA_STATE */ | 311 | /** LBS_MEDIA_STATE */ |
312 | enum WLAN_MEDIA_STATE { | 312 | enum LBS_MEDIA_STATE { |
313 | LIBERTAS_CONNECTED, | 313 | LBS_CONNECTED, |
314 | LIBERTAS_DISCONNECTED | 314 | LBS_DISCONNECTED |
315 | }; | 315 | }; |
316 | 316 | ||
317 | /** WLAN_802_11_PRIVACY_FILTER */ | 317 | /** LBS_802_11_PRIVACY_FILTER */ |
318 | enum WLAN_802_11_PRIVACY_FILTER { | 318 | enum LBS_802_11_PRIVACY_FILTER { |
319 | WLAN802_11PRIVFILTERACCEPTALL, | 319 | LBS802_11PRIVFILTERACCEPTALL, |
320 | WLAN802_11PRIVFILTER8021XWEP | 320 | LBS802_11PRIVFILTER8021XWEP |
321 | }; | 321 | }; |
322 | 322 | ||
323 | /** mv_ms_type */ | 323 | /** mv_ms_type */ |
@@ -382,4 +382,4 @@ enum SNMP_MIB_VALUE_e { | |||
382 | #define FWT_DEFAULT_SLEEPMODE 0 | 382 | #define FWT_DEFAULT_SLEEPMODE 0 |
383 | #define FWT_DEFAULT_SNR 0 | 383 | #define FWT_DEFAULT_SNR 0 |
384 | 384 | ||
385 | #endif /* _WLAN_DEFS_H_ */ | 385 | #endif |