staging: rtl8192e: Convert typedef rx_fwinfo to struct rx_fwinfo
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 19 Jul 2011 03:56:46 +0000 (22:56 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 06:29:53 +0000 (01:29 -0500)
Remove typedef from struct.
Rename struct.
Rename uses.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
drivers/staging/rtl8192e/r8190P_def.h
drivers/staging/rtl8192e/r8192E_dev.c

index 228998a4a11c625b5efaaeca3af45fd042ee1398..8fcb9ce1996118a763a6aa7efca83fdb6c15a8e4 100644 (file)
@@ -388,7 +388,7 @@ struct rx_desc {
 };//, *prx_desc;
 
 
-typedef struct _rx_fwinfo_819x_pci{
+struct rx_fwinfo {
        u16                     Reserved1:12;
        u16                     PartAggr:1;
        u16                     FirstAGGR:1;
@@ -407,6 +407,6 @@ typedef struct _rx_fwinfo_819x_pci{
 
        u32                     TSFL;
 
-}rx_fwinfo, *prx_fwinfo;
+};//, *prx_fwinfo;
 
 #endif
index 41f5add3dd1218d63182f6b4093fac514c94ead5..1935c30da8aa9bf3f5d6f9f7728f1e51abb13006 100644 (file)
@@ -1397,7 +1397,7 @@ void rtl8192_query_rxphystatus(
        struct r8192_priv * priv,
        struct rtllib_rx_stats * pstats,
        struct rx_desc  *pdesc,
-       prx_fwinfo   pdrvinfo,
+       struct rx_fwinfo   *pdrvinfo,
        struct rtllib_rx_stats * precord_stats,
        bool bpacket_match_bssid,
        bool bpacket_toself,
@@ -1439,7 +1439,7 @@ void rtl8192_query_rxphystatus(
 
        prxpkt = (u8*)pdrvinfo;
 
-       prxpkt += sizeof(rx_fwinfo);
+       prxpkt += sizeof(struct rx_fwinfo);
 
        pcck_buf = (struct phy_sts_cck_819xpci *)prxpkt;
        pofdm_buf = (struct phy_sts_ofdm_819xpci *)prxpkt;
@@ -1769,7 +1769,7 @@ void rtl8192_TranslateRxSignalStuff(struct net_device *dev,
         struct sk_buff *skb,
         struct rtllib_rx_stats * pstats,
         struct rx_desc *pdesc,
-        prx_fwinfo pdrvinfo)
+        struct rx_fwinfo *pdrvinfo)
 {
     struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev);
     bool bpacket_match_bssid, bpacket_toself;
@@ -1896,12 +1896,12 @@ bool rtl8192_rx_query_status_desc(struct net_device* dev, struct rtllib_rx_stats
                }
                return false;
        } else {
-               prx_fwinfo pDrvInfo = NULL;
+               struct rx_fwinfo *pDrvInfo = NULL;
                stats->RxDrvInfoSize = pdesc->RxDrvInfoSize;
                stats->RxBufShift = ((pdesc->Shift)&0x03);
                stats->Decrypted = !pdesc->SWDec;
 
-               pDrvInfo = (rx_fwinfo *)(skb->data + stats->RxBufShift);
+               pDrvInfo = (struct rx_fwinfo *)(skb->data + stats->RxBufShift);
 
                stats->rate = HwRateToMRate90((bool)pDrvInfo->RxHT, (u8)pDrvInfo->RxRate);
                stats->bShortPreamble = pDrvInfo->SPLCP;