From: Larry Finger Date: Tue, 19 Jul 2011 04:03:38 +0000 (-0500) Subject: staging: rtl8192e: Convert typedef cmpk_tx_status_t to struct cmpk_tx_status X-Git-Tag: MMI-PSA29.97-13-9~18234^2^2~864^2~14^2~146 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7f6aa06ca2155dd1e6ca62f5ca81c09fbb9a8cb3;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git staging: rtl8192e: Convert typedef cmpk_tx_status_t to struct cmpk_tx_status Remove typedef from struct. Rename struct. Rename uses. Signed-off-by: Larry Finger --- diff --git a/drivers/staging/rtl8192e/r8192E_cmdpkt.c b/drivers/staging/rtl8192e/r8192E_cmdpkt.c index 4ead08dee3f6..46efaa322367 100644 --- a/drivers/staging/rtl8192e/r8192E_cmdpkt.c +++ b/drivers/staging/rtl8192e/r8192E_cmdpkt.c @@ -266,7 +266,7 @@ cmpk_handle_query_config_rx( static void cmpk_count_tx_status( struct net_device *dev, - cmpk_tx_status_t *pstx_status) + struct cmpk_tx_status *pstx_status) { struct r8192_priv *priv = rtllib_priv(dev); @@ -314,9 +314,9 @@ cmpk_handle_tx_status( struct net_device *dev, u8* pmsg) { - cmpk_tx_status_t rx_tx_sts; /* */ + struct cmpk_tx_status rx_tx_sts; /* */ - memcpy((void*)&rx_tx_sts, (void*)pmsg, sizeof(cmpk_tx_status_t)); + memcpy((void*)&rx_tx_sts, (void*)pmsg, sizeof(struct cmpk_tx_status)); cmpk_count_tx_status(dev, &rx_tx_sts); } diff --git a/drivers/staging/rtl8192e/r8192E_cmdpkt.h b/drivers/staging/rtl8192e/r8192E_cmdpkt.h index 07c69f22893c..4c34f6e3fd37 100644 --- a/drivers/staging/rtl8192e/r8192E_cmdpkt.h +++ b/drivers/staging/rtl8192e/r8192E_cmdpkt.h @@ -21,7 +21,7 @@ #define CMPK_RX_TX_FB_SIZE sizeof(struct cmpk_txfb) #define CMPK_TX_SET_CONFIG_SIZE sizeof(struct cmpk_set_cfg) #define CMPK_BOTH_QUERY_CONFIG_SIZE sizeof(struct cmpk_set_cfg) -#define CMPK_RX_TX_STS_SIZE sizeof(cmpk_tx_status_t) +#define CMPK_RX_TX_STS_SIZE sizeof(struct cmpk_tx_status) #define CMPK_RX_DBG_MSG_SIZE sizeof(cmpk_rx_dbginfo_t) #define CMPK_TX_RAHIS_SIZE sizeof(cmpk_tx_rahis_t) @@ -83,8 +83,7 @@ struct cmpk_set_cfg { #define cmpk_query_cfg_t struct cmpk_set_cfg -typedef struct tag_tx_stats_feedback -{ +struct cmpk_tx_status { u16 reserve1; u8 length; u8 element_id; @@ -111,7 +110,7 @@ typedef struct tag_tx_stats_feedback u16 reserve3_23; u8 reserve3_1; u8 rate; -}__attribute__((packed)) cmpk_tx_status_t; +}__packed; typedef struct tag_rx_debug_message_feedback {