]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rtl8192e: Convert typedef rx_desc to struct rx_desc
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 19 Jul 2011 03:52:12 +0000 (22:52 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 06:29:25 +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
drivers/staging/rtl8192e/r8192E_dev.h
drivers/staging/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl_core.h

index a62d34143ffea4effb6faee0f943c3f1ee5e0cc6..228998a4a11c625b5efaaeca3af45fd042ee1398 100644 (file)
@@ -366,7 +366,7 @@ struct tx_desc_cmd {
        u32     Reserved6;
 };//, *ptx_desc_cmd;
 
-typedef struct _rx_desc_819x_pci{
+struct rx_desc {
        u16                     Length:14;
        u16                     CRC32:1;
        u16                     ICV:1;
@@ -385,7 +385,7 @@ typedef struct _rx_desc_819x_pci{
 
        u32     BufferAddress;
 
-}rx_desc, *prx_desc;
+};//, *prx_desc;
 
 
 typedef struct _rx_fwinfo_819x_pci{
index 53be813b85fbbd55c0e864b6512573ec493dac22..41f5add3dd1218d63182f6b4093fac514c94ead5 100644 (file)
@@ -1396,7 +1396,7 @@ rtl8192_signal_scale_mapping(struct r8192_priv * priv,
 void rtl8192_query_rxphystatus(
        struct r8192_priv * priv,
        struct rtllib_rx_stats * pstats,
-       prx_desc  pdesc,
+       struct rx_desc  *pdesc,
        prx_fwinfo   pdrvinfo,
        struct rtllib_rx_stats * precord_stats,
        bool bpacket_match_bssid,
@@ -1768,7 +1768,7 @@ void rtl8192_process_phyinfo(struct r8192_priv * priv, u8* buffer,struct rtllib_
 void rtl8192_TranslateRxSignalStuff(struct net_device *dev,
         struct sk_buff *skb,
         struct rtllib_rx_stats * pstats,
-        prx_desc pdesc,
+        struct rx_desc *pdesc,
         prx_fwinfo pdrvinfo)
 {
     struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev);
@@ -1871,7 +1871,7 @@ void rtl8192_UpdateReceivedRateHistogramStatistics(
 }
 
 bool rtl8192_rx_query_status_desc(struct net_device* dev, struct rtllib_rx_stats*  stats,
-               rx_desc *pdesc, struct sk_buff* skb)
+               struct rx_desc *pdesc, struct sk_buff* skb)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
 
index 20652edc49b2d60ebcd524ef70c46d70d3733d21..3843c8d1550d02fe3378ba4ea6004dba7798b90e 100644 (file)
@@ -50,7 +50,7 @@ void  rtl8192_tx_fill_desc(struct net_device* dev, struct tx_desc * pdesc, cb_de
 void  rtl8192_tx_fill_cmd_desc(struct net_device* dev, struct tx_desc_cmd * entry,
                               cb_desc * cb_desc, struct sk_buff* skb);
 bool rtl8192_rx_query_status_desc(struct net_device* dev, struct rtllib_rx_stats *stats,
-                                 rx_desc *pdesc, struct sk_buff* skb);
+                                 struct rx_desc *pdesc, struct sk_buff* skb);
 void rtl8192_halt_adapter(struct net_device *dev, bool reset);
 void rtl8192_update_ratr_table(struct net_device* dev);
 #endif
index 7fd8e5d36d3bc1dd05b75dce26cc6b0c0f63b898..321b6856efa3553d204060db9a48f3e039392ce8 100644 (file)
@@ -2108,7 +2108,7 @@ short rtl8192_tx(struct net_device *dev, struct sk_buff* skb)
 short rtl8192_alloc_rx_desc_ring(struct net_device *dev)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
-       rx_desc *entry = NULL;
+       struct rx_desc *entry = NULL;
        int i, rx_queue_idx;
 
        for (rx_queue_idx = 0; rx_queue_idx < MAX_RX_QUEUE; rx_queue_idx ++){
@@ -2210,7 +2210,7 @@ void rtl8192_pci_resetdescring(struct net_device *dev)
 
        for (rx_queue_idx = 0; rx_queue_idx < MAX_RX_QUEUE; rx_queue_idx ++){
                if (priv->rx_ring[rx_queue_idx]) {
-                       rx_desc *entry = NULL;
+                       struct rx_desc *entry = NULL;
                        for (i = 0; i < priv->rxringcount; i++) {
                                entry = &priv->rx_ring[rx_queue_idx][i];
                                entry->OWN = 1;
@@ -2363,7 +2363,7 @@ void rtl8192_rx_normal(struct net_device *dev)
        stats.nic_type = NIC_8192E;
 
        while (count--) {
-               rx_desc *pdesc = &priv->rx_ring[rx_queue_idx][priv->rx_idx[rx_queue_idx]];
+               struct rx_desc *pdesc = &priv->rx_ring[rx_queue_idx][priv->rx_idx[rx_queue_idx]];
                struct sk_buff *skb = priv->rx_buf[rx_queue_idx][priv->rx_idx[rx_queue_idx]];
 
                if (pdesc->OWN) {
index fdfab03a2cfbf69b36e1676f6c61e6b2d797bad8..9dc1249a4a4d45d0cd7b978a73465211309098ce 100644 (file)
@@ -537,8 +537,8 @@ struct rtl819x_ops{
        void (*link_change)(struct net_device* dev);
        void (* tx_fill_descriptor)(struct net_device* dev, struct tx_desc *tx_desc, cb_desc * cb_desc, struct sk_buff *skb);
        void (* tx_fill_cmd_descriptor)(struct net_device* dev, struct tx_desc_cmd * entry, cb_desc * cb_desc, struct sk_buff *skb);
-       bool (* rx_query_status_descriptor)(struct net_device* dev, struct rtllib_rx_stats*  stats, rx_desc *pdesc, struct sk_buff* skb);
-       bool (* rx_command_packet_handler)(struct net_device *dev, struct sk_buff* skb, rx_desc *pdesc);
+       bool (* rx_query_status_descriptor)(struct net_device* dev, struct rtllib_rx_stats*  stats, struct rx_desc *pdesc, struct sk_buff* skb);
+       bool (* rx_command_packet_handler)(struct net_device *dev, struct sk_buff* skb, struct rx_desc *pdesc);
        void (* stop_adapter)(struct net_device *dev, bool reset);
        void (* update_ratr_table)(struct net_device* dev);
        void (* irq_enable)(struct net_device* dev);
@@ -644,7 +644,7 @@ typedef struct r8192_priv
        void (*rf_close)(struct net_device *dev);
        void (*rf_init)(struct net_device *dev);
 
-       rx_desc                 *rx_ring[MAX_RX_QUEUE];
+       struct rx_desc *rx_ring[MAX_RX_QUEUE];
        struct sk_buff  *rx_buf[MAX_RX_QUEUE][MAX_RX_COUNT];
        dma_addr_t      rx_ring_dma[MAX_RX_QUEUE];
        unsigned int    rx_idx[MAX_RX_QUEUE];