staging: rtl8192e: Convert typedef cmpk_intr_sta_t to struct cmpk_intr_sta
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 19 Jul 2011 04:00:34 +0000 (23:00 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 06:30:46 +0000 (01:30 -0500)
Remove typedef from struct.
Rename struct.
Rename uses.

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

index 026e3996655af5eb797eb34415397bb6225c2fa1..4ead08dee3f6b466dbb2e1f3145668493017df9c 100644 (file)
@@ -199,14 +199,14 @@ cmpk_handle_interrupt_status(
        struct net_device *dev,
        u8*     pmsg)
 {
-       cmpk_intr_sta_t         rx_intr_status; /* */
+       struct cmpk_intr_sta rx_intr_status;    /* */
        struct r8192_priv *priv = rtllib_priv(dev);
 
        DMESG("---> cmpk_Handle_Interrupt_Status()\n");
 
 
        rx_intr_status.length = pmsg[1];
-       if (rx_intr_status.length != (sizeof(cmpk_intr_sta_t) - 2))
+       if (rx_intr_status.length != (sizeof(struct cmpk_intr_sta) - 2))
        {
                DMESG("cmpk_Handle_Interrupt_Status: wrong length!\n");
                return;
@@ -416,7 +416,7 @@ cmpk_message_handle_rx(
                case RX_INTERRUPT_STATUS:
                        RT_TRACE(COMP_CMDPKT, "---->cmpk_message_handle_rx():RX_INTERRUPT_STATUS\n");
                        cmpk_handle_interrupt_status(dev, pcmd_buff);
-                       cmd_length = sizeof(cmpk_intr_sta_t);
+                       cmd_length = sizeof(struct cmpk_intr_sta);
                        break;
                case BOTH_QUERY_CONFIG:
                        RT_TRACE(COMP_CMDPKT, "---->cmpk_message_handle_rx():BOTH_QUERY_CONFIG\n");
index e3278434b1f1f0e25b1c64a5cf3b82d502f6f92d..9e92d7b88fad4fc5370eb55c3dcf9bfea5c00a2d 100644 (file)
@@ -57,13 +57,12 @@ struct cmpk_txfb {
        u16     duration;                       /* */
 };//;
 
-typedef struct tag_cmd_pkt_interrupt_status
-{
+struct cmpk_intr_sta {
        u8      element_id;
        u8      length;
        u16     reserve;
        u32     interrupt_status;
-}cmpk_intr_sta_t;
+};//;
 
 
 typedef struct tag_cmd_pkt_set_configuration