提交 c41c858f 编写于 作者: R Roland Vossen 提交者: Greg Kroah-Hartman

staging: brcm80211: replaced typedef wlccore_t by struct wlccore

Code cleanup
Signed-off-by: NRoland Vossen <rvossen@broadcom.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 f077f718
...@@ -282,7 +282,8 @@ struct wlc_info *wlc_attach_malloc(struct osl_info *osh, uint unit, uint *err, ...@@ -282,7 +282,8 @@ struct wlc_info *wlc_attach_malloc(struct osl_info *osh, uint unit, uint *err,
} }
} }
wlc->corestate = (wlccore_t *)wlc_calloc(osh, unit, sizeof(wlccore_t)); wlc->corestate = (struct wlccore *)wlc_calloc(osh, unit,
sizeof(struct wlccore));
if (wlc->corestate == NULL) { if (wlc->corestate == NULL) {
*err = 1026; *err = 1026;
goto fail; goto fail;
......
...@@ -302,7 +302,7 @@ typedef struct wlc_stf { ...@@ -302,7 +302,7 @@ typedef struct wlc_stf {
/* /*
* core state (mac) * core state (mac)
*/ */
typedef struct wlccore { struct wlccore {
uint coreidx; /* # sb enumerated core */ uint coreidx; /* # sb enumerated core */
/* fifo */ /* fifo */
...@@ -310,7 +310,7 @@ typedef struct wlccore { ...@@ -310,7 +310,7 @@ typedef struct wlccore {
s16 txpktpend[NFIFO]; /* tx admission control */ s16 txpktpend[NFIFO]; /* tx admission control */
macstat_t *macstat_snapshot; /* mac hw prev read values */ macstat_t *macstat_snapshot; /* mac hw prev read values */
} wlccore_t; };
/* /*
* band state (phy+ana+radio) * band state (phy+ana+radio)
...@@ -532,9 +532,9 @@ struct wlc_info { ...@@ -532,9 +532,9 @@ struct wlc_info {
bool clk; /* core is out of reset and has clock */ bool clk; /* core is out of reset and has clock */
/* multiband */ /* multiband */
wlccore_t *core; /* pointer to active io core */ struct wlccore *core; /* pointer to active io core */
struct wlcband *band; /* pointer to active per-band state */ struct wlcband *band; /* pointer to active per-band state */
wlccore_t *corestate; /* per-core state (one per hw core) */ struct wlccore *corestate; /* per-core state (one per hw core) */
/* per-band state (one per phy/radio): */ /* per-band state (one per phy/radio): */
struct wlcband *bandstate[MAXBANDS]; struct wlcband *bandstate[MAXBANDS];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册