diff options
author | Roland Vossen <rvossen@broadcom.com> | 2010-12-07 11:45:45 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-08 17:27:48 -0500 |
commit | c41c858f695b6626e2fc0729edc0dd26b091f354 (patch) | |
tree | c737ffd08cfe90b7b5261898e171cd4682713ff8 | |
parent | f077f7185ce19adc234b96c6f9fb815301770c26 (diff) |
staging: brcm80211: replaced typedef wlccore_t by struct wlccore
Code cleanup
Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/brcm80211/sys/wlc_alloc.c | 3 | ||||
-rw-r--r-- | drivers/staging/brcm80211/sys/wlc_mac80211.h | 8 |
2 files changed, 6 insertions, 5 deletions
diff --git a/drivers/staging/brcm80211/sys/wlc_alloc.c b/drivers/staging/brcm80211/sys/wlc_alloc.c index 09a1efd7b430..7d04d532a024 100644 --- a/drivers/staging/brcm80211/sys/wlc_alloc.c +++ b/drivers/staging/brcm80211/sys/wlc_alloc.c | |||
@@ -282,7 +282,8 @@ struct wlc_info *wlc_attach_malloc(struct osl_info *osh, uint unit, uint *err, | |||
282 | } | 282 | } |
283 | } | 283 | } |
284 | 284 | ||
285 | wlc->corestate = (wlccore_t *)wlc_calloc(osh, unit, sizeof(wlccore_t)); | 285 | wlc->corestate = (struct wlccore *)wlc_calloc(osh, unit, |
286 | sizeof(struct wlccore)); | ||
286 | if (wlc->corestate == NULL) { | 287 | if (wlc->corestate == NULL) { |
287 | *err = 1026; | 288 | *err = 1026; |
288 | goto fail; | 289 | goto fail; |
diff --git a/drivers/staging/brcm80211/sys/wlc_mac80211.h b/drivers/staging/brcm80211/sys/wlc_mac80211.h index acd854886df6..ba2b953800e3 100644 --- a/drivers/staging/brcm80211/sys/wlc_mac80211.h +++ b/drivers/staging/brcm80211/sys/wlc_mac80211.h | |||
@@ -302,7 +302,7 @@ typedef struct wlc_stf { | |||
302 | /* | 302 | /* |
303 | * core state (mac) | 303 | * core state (mac) |
304 | */ | 304 | */ |
305 | typedef struct wlccore { | 305 | struct wlccore { |
306 | uint coreidx; /* # sb enumerated core */ | 306 | uint coreidx; /* # sb enumerated core */ |
307 | 307 | ||
308 | /* fifo */ | 308 | /* fifo */ |
@@ -310,7 +310,7 @@ typedef struct wlccore { | |||
310 | s16 txpktpend[NFIFO]; /* tx admission control */ | 310 | s16 txpktpend[NFIFO]; /* tx admission control */ |
311 | 311 | ||
312 | macstat_t *macstat_snapshot; /* mac hw prev read values */ | 312 | macstat_t *macstat_snapshot; /* mac hw prev read values */ |
313 | } wlccore_t; | 313 | }; |
314 | 314 | ||
315 | /* | 315 | /* |
316 | * band state (phy+ana+radio) | 316 | * band state (phy+ana+radio) |
@@ -532,9 +532,9 @@ struct wlc_info { | |||
532 | bool clk; /* core is out of reset and has clock */ | 532 | bool clk; /* core is out of reset and has clock */ |
533 | 533 | ||
534 | /* multiband */ | 534 | /* multiband */ |
535 | wlccore_t *core; /* pointer to active io core */ | 535 | struct wlccore *core; /* pointer to active io core */ |
536 | struct wlcband *band; /* pointer to active per-band state */ | 536 | struct wlcband *band; /* pointer to active per-band state */ |
537 | wlccore_t *corestate; /* per-core state (one per hw core) */ | 537 | struct wlccore *corestate; /* per-core state (one per hw core) */ |
538 | /* per-band state (one per phy/radio): */ | 538 | /* per-band state (one per phy/radio): */ |
539 | struct wlcband *bandstate[MAXBANDS]; | 539 | struct wlcband *bandstate[MAXBANDS]; |
540 | 540 | ||