]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: rtl8192e: Convert typedef rate_adaptive to struct rate_adaptive
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 19 Jul 2011 05:09:03 +0000 (00:09 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 06:43:59 +0000 (01:43 -0500)
Remove typedef from struct.
Rename struct.
Rename uses.

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

index 705ccdee0db16166934996454a978707c931b85f..2747f0dce63216e2d2e37c9fd60dfedc31829839 100644 (file)
@@ -594,7 +594,7 @@ typedef struct r8192_priv
        IC_INFERIORITY_8192S            IC_Class;
        HT_CHANNEL_WIDTH                CurrentChannelBW;
        struct bb_reg_definition PHYRegDef[4];
-       rate_adaptive                           rate_adaptive;
+       struct rate_adaptive rate_adaptive;
 
        struct ccktxbbgain cck_txbbgain_table[CCKTxBBGainTableLength];
        struct ccktxbbgain cck_txbbgain_ch14_table[CCKTxBBGainTableLength];
index 91edd466291b2a08a45b11c7f91b1fc199b056f4..ecd817740870e499156452c8c21a7eefbfaf4348 100644 (file)
@@ -251,7 +251,7 @@ extern void init_rate_adaptive(struct net_device * dev)
 {
 
        struct r8192_priv *priv = rtllib_priv(dev);
-       prate_adaptive                  pra = (prate_adaptive)&priv->rate_adaptive;
+       struct rate_adaptive *pra = (struct rate_adaptive *)&priv->rate_adaptive;
 
        pra->ratr_state = DM_RATR_STA_MAX;
        pra->high2low_rssi_thresh_for_ra = RateAdaptiveTH_High;
@@ -295,7 +295,7 @@ static void dm_check_rate_adaptive(struct net_device * dev)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
        struct rt_hi_throughput *pHTInfo = priv->rtllib->pHTInfo;
-       prate_adaptive                  pra = (prate_adaptive)&priv->rate_adaptive;
+       struct rate_adaptive *pra = (struct rate_adaptive *)&priv->rate_adaptive;
        u32                                             currentRATR, targetRATR = 0;
        u32                                             LowRSSIThreshForRA = 0, HighRSSIThreshForRA = 0;
        bool                                            bshort_gi_enabled = false;
@@ -1801,7 +1801,7 @@ dm_change_rxpath_selection_setting(
        s32             DM_Value)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
-       prate_adaptive  pRA = (prate_adaptive)&(priv->rate_adaptive);
+       struct rate_adaptive *pRA = (struct rate_adaptive *)&(priv->rate_adaptive);
 
 
        if (DM_Type == 0)
index c06185c0d96701b301aa9554ffa663f1a4d05b6f..20c91e41405973e7ff295f86b420012077094308 100644 (file)
@@ -2015,8 +2015,7 @@ struct sw_cam_table {
 
 };//,*struct sw_cam_table *;
 #define   TOTAL_CAM_ENTRY                              32
-typedef struct _rate_adaptive
-{
+struct rate_adaptive {
        u8                              rate_adaptive_disabled;
        u8                              ratr_state;
        u16                             reserve;
@@ -2038,7 +2037,7 @@ typedef struct _rate_adaptive
        u32                             last_ratr;
        u8                              PreRATRState;
 
-} rate_adaptive, *prate_adaptive;
+};
 typedef enum _RATR_TABLE_MODE_8192S{
        RATR_INX_WIRELESS_NGB = 0,
        RATR_INX_WIRELESS_NG = 1,