]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rtl8192e: Convert typedef tx_desc_cmd to struct tx_desc_cmd
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 19 Jul 2011 03:38:16 +0000 (22:38 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 06:29:00 +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 f3b6d7103a0bc715803f12b031f9223a74456e78..a62d34143ffea4effb6faee0f943c3f1ee5e0cc6 100644 (file)
@@ -343,7 +343,7 @@ struct tx_desc {
 };//, *ptx_desc;
 
 
-typedef struct tx_desc_cmd_819x_pci {
+struct tx_desc_cmd {
        u16     PktSize;
        u8      Reserved1;
        u8      CmdType:3;
@@ -364,7 +364,7 @@ typedef struct tx_desc_cmd_819x_pci {
        u32     Reserved4;
        u32     Reserved5;
        u32     Reserved6;
-}tx_desc_cmd, *ptx_desc_cmd;
+};//, *ptx_desc_cmd;
 
 typedef struct _rx_desc_819x_pci{
        u16                     Length:14;
index fb42ac224dca802b3413feb34088f233739a917d..53be813b85fbbd55c0e864b6512573ec493dac22 100644 (file)
@@ -1256,7 +1256,7 @@ void  rtl8192_tx_fill_desc(struct net_device* dev, struct tx_desc * pdesc, cb_de
     pdesc->TxBuffAddr = cpu_to_le32(mapping);
 }
 
-void  rtl8192_tx_fill_cmd_desc(struct net_device* dev, tx_desc_cmd * entry,
+void  rtl8192_tx_fill_cmd_desc(struct net_device* dev, struct tx_desc_cmd * entry,
                cb_desc * cb_desc, struct sk_buff* skb)
 {
     struct r8192_priv *priv = rtllib_priv(dev);
index 93d915318fc2440c32ad384374a8ac5411bb464e..20652edc49b2d60ebcd524ef70c46d70d3733d21 100644 (file)
@@ -47,7 +47,7 @@ void rtl8192_link_change(struct net_device *dev);
 void rtl8192_AllowAllDestAddr(struct net_device* dev, bool bAllowAllDA, bool WriteIntoReg);
 void  rtl8192_tx_fill_desc(struct net_device* dev, struct tx_desc * pdesc, cb_desc * cb_desc,
                           struct sk_buff* skb);
-void  rtl8192_tx_fill_cmd_desc(struct net_device* dev, tx_desc_cmd * entry,
+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);
index a44161d82ec6827490a6bbb8f54cda19544ba8ec..7fd8e5d36d3bc1dd05b75dce26cc6b0c0f63b898 100644 (file)
@@ -2007,7 +2007,7 @@ void rtl8192_tx_cmd(struct net_device *dev, struct sk_buff *skb)
 {
     struct r8192_priv *priv = rtllib_priv(dev);
     struct rtl8192_tx_ring *ring;
-    tx_desc_cmd* entry;
+    struct tx_desc_cmd * entry;
     unsigned int idx;
     cb_desc *tcb_desc;
     unsigned long flags;
@@ -2016,7 +2016,7 @@ void rtl8192_tx_cmd(struct net_device *dev, struct sk_buff *skb)
     ring = &priv->tx_ring[TXCMD_QUEUE];
 
     idx = (ring->idx + skb_queue_len(&ring->queue)) % ring->entries;
-    entry = (tx_desc_cmd*) &ring->desc[idx];
+    entry = (struct tx_desc_cmd *) &ring->desc[idx];
 
     tcb_desc = (cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE);
 
index 63b9e6c7e5f743df2f2a0daf4ca7d3dadc3635fa..fdfab03a2cfbf69b36e1676f6c61e6b2d797bad8 100644 (file)
@@ -536,7 +536,7 @@ struct rtl819x_ops{
        bool (* initialize_adapter)(struct net_device* dev);
        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, tx_desc_cmd * entry, 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);
        void (* stop_adapter)(struct net_device *dev, bool reset);