staging: brcm80211: replaced typedef wlc_pub_t by struct wlc_pub
authorRoland Vossen <rvossen@broadcom.com>
Tue, 7 Dec 2010 16:45:46 +0000 (17:45 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 8 Dec 2010 22:27:48 +0000 (14:27 -0800)
Code cleanup

Signed-off-by: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/sys/wl_mac80211.h
drivers/staging/brcm80211/sys/wlc_alloc.c
drivers/staging/brcm80211/sys/wlc_antsel.c
drivers/staging/brcm80211/sys/wlc_antsel.h
drivers/staging/brcm80211/sys/wlc_channel.c
drivers/staging/brcm80211/sys/wlc_event.c
drivers/staging/brcm80211/sys/wlc_event.h
drivers/staging/brcm80211/sys/wlc_mac80211.c
drivers/staging/brcm80211/sys/wlc_mac80211.h
drivers/staging/brcm80211/sys/wlc_pub.h

index 87a8128..bb39b77 100644 (file)
@@ -60,7 +60,7 @@ struct wl_firmware {
 };
 
 struct wl_info {
-       wlc_pub_t *pub;         /* pointer to public wlc state */
+       struct wlc_pub *pub;            /* pointer to public wlc state */
        void *wlc;              /* pointer to private common os-independent data */
        struct osl_info *osh;           /* pointer to os handler */
        u32 magic;
index 7d04d53..9af2d17 100644 (file)
@@ -32,9 +32,9 @@
 #include <wlc_alloc.h>
 #include <wl_dbg.h>
 
-static wlc_pub_t *wlc_pub_malloc(struct osl_info *osh, uint unit, uint *err,
-                                uint devid);
-static void wlc_pub_mfree(struct osl_info *osh, wlc_pub_t *pub);
+static struct wlc_pub *wlc_pub_malloc(struct osl_info *osh, uint unit,
+                                     uint *err, uint devid);
+static void wlc_pub_mfree(struct osl_info *osh, struct wlc_pub *pub);
 static void wlc_tunables_init(wlc_tunables_t *tunables, uint devid);
 
 void *wlc_calloc(struct osl_info *osh, uint unit, uint size)
@@ -65,12 +65,12 @@ void wlc_tunables_init(wlc_tunables_t *tunables, uint devid)
        tunables->txsbnd = TXSBND;
 }
 
-static wlc_pub_t *wlc_pub_malloc(struct osl_info *osh, uint unit, uint *err,
-                                uint devid)
+static struct wlc_pub *wlc_pub_malloc(struct osl_info *osh, uint unit,
+                                     uint *err, uint devid)
 {
-       wlc_pub_t *pub;
+       struct wlc_pub *pub;
 
-       pub = (wlc_pub_t *) wlc_calloc(osh, unit, sizeof(wlc_pub_t));
+       pub = (struct wlc_pub *) wlc_calloc(osh, unit, sizeof(struct wlc_pub));
        if (pub == NULL) {
                *err = 1001;
                goto fail;
@@ -100,7 +100,7 @@ static wlc_pub_t *wlc_pub_malloc(struct osl_info *osh, uint unit, uint *err,
        return NULL;
 }
 
-static void wlc_pub_mfree(struct osl_info *osh, wlc_pub_t *pub)
+static void wlc_pub_mfree(struct osl_info *osh, struct wlc_pub *pub)
 {
        if (pub == NULL)
                return;
@@ -179,7 +179,7 @@ struct wlc_info *wlc_attach_malloc(struct osl_info *osh, uint unit, uint *err,
 
        wlc->hwrxoff = WL_HWRXOFF;
 
-       /* allocate wlc_pub_t state structure */
+       /* allocate struct wlc_pub state structure */
        wlc->pub = wlc_pub_malloc(osh, unit, err, devid);
        if (wlc->pub == NULL) {
                *err = 1003;