staging: rtl8192e: Convert typedef RT_POWER_SAVE_CONTROL to struct rt_pwr_save_ctrl
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 19 Jul 2011 03:06:47 +0000 (22:06 -0500)
committerLarry Finger <Larry.Finger@lwfinger.net>
Wed, 24 Aug 2011 06:21:36 +0000 (01:21 -0500)
Remove typedef from struct.
Rename struct.
Rename uses.

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

index 566eea1..22ab563 100644 (file)
@@ -1381,7 +1381,7 @@ SetRFPowerState8190(
        )
 {
        struct r8192_priv *priv = rtllib_priv(dev);
-       PRT_POWER_SAVE_CONTROL  pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->rtllib->PowerSaveControl));
+       struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
        bool bResult = true;
        u8      i = 0, QueueID = 0;
        struct rtl8192_tx_ring  *ring = NULL;
index 7861c36..cb25212 100644 (file)
@@ -1003,7 +1003,7 @@ void rtl8192_SetWirelessMode(struct net_device* dev, u8 wireless_mode)
 int _rtl8192_sta_up(struct net_device *dev,bool is_silent_reset)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
-       PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->rtllib->PowerSaveControl));
+       struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
        bool init_status = true;
        priv->bDriverIsGoingToUnload = false;
        priv->bdisable_nic = false;
@@ -1153,7 +1153,7 @@ static void rtl8192_init_priv_handler(struct net_device* dev)
 static void rtl8192_init_priv_constant(struct net_device* dev)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
-       PRT_POWER_SAVE_CONTROL  pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->rtllib->PowerSaveControl));
+       struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
 
        pPSC->RegMaxLPSAwakeIntvl = 5;
 
@@ -1681,7 +1681,7 @@ void      rtl819x_watchdog_wqcallback(void *data)
        RESET_TYPE      ResetType = RESET_TYPE_NORESET;
        static u8       check_reset_cnt = 0;
        unsigned long flags;
-       PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->rtllib->PowerSaveControl));
+       struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
        bool bBusyTraffic = false;
        bool    bHigherBusyTraffic = false;
        bool    bHigherBusyRxTraffic = false;
@@ -3139,7 +3139,7 @@ bool NicIFEnableNIC(struct net_device* dev)
 {
        bool init_status = true;
        struct r8192_priv* priv = rtllib_priv(dev);
-       PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->rtllib->PowerSaveControl));
+       struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
 
        if (IS_NIC_DOWN(priv)){
                RT_TRACE(COMP_ERR, "ERR!!! %s(): Driver is already down!\n",__func__);
index 0030629..1f69c37 100644 (file)
@@ -116,7 +116,7 @@ void rtl8192_hw_to_sleep(struct net_device *dev, u32 th, u32 tl)
 void InactivePsWorkItemCallback(struct net_device *dev)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
-       PRT_POWER_SAVE_CONTROL  pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->rtllib->PowerSaveControl));
+       struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
 
        RT_TRACE(COMP_PS, "InactivePsWorkItemCallback() ---------> \n");
        pPSC->bSwRfProcessing = true;
@@ -133,7 +133,7 @@ void
 IPSEnter(struct net_device *dev)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
-       PRT_POWER_SAVE_CONTROL          pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->rtllib->PowerSaveControl));
+       struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
        RT_RF_POWER_STATE                       rtState;
 
        if (pPSC->bInactivePs)
@@ -156,7 +156,7 @@ void
 IPSLeave(struct net_device *dev)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
-       PRT_POWER_SAVE_CONTROL  pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->rtllib->PowerSaveControl));
+       struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
        RT_RF_POWER_STATE       rtState;
 
        if (pPSC->bInactivePs)
@@ -240,7 +240,7 @@ bool MgntActSet_802_11_PowerSaveMode(struct net_device *dev,        u8 rtPsMode)
 void LeisurePSEnter(struct net_device *dev)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
-       PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->rtllib->PowerSaveControl));
+       struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
 
        RT_TRACE(COMP_PS, "LeisurePSEnter()...\n");
        RT_TRACE(COMP_PS, "pPSC->bLeisurePs = %d, ieee->ps = %d,pPSC->LpsIdleCount is %d,RT_CHECK_FOR_HANG_PERIOD is %d\n",
@@ -272,7 +272,7 @@ void LeisurePSEnter(struct net_device *dev)
 void LeisurePSLeave(struct net_device *dev)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
-       PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->rtllib->PowerSaveControl));
+       struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
 
 
        RT_TRACE(COMP_PS, "LeisurePSLeave()...\n");
index 44c49d5..2079ae8 100644 (file)
@@ -218,7 +218,7 @@ static int r8192_wx_adapter_power_status(struct net_device *dev,
                union iwreq_data *wrqu, char *extra)
 {
        struct r8192_priv *priv = rtllib_priv(dev);
-       PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->rtllib->PowerSaveControl));
+       struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
        struct rtllib_device* ieee = priv->rtllib;
 
        down(&priv->wx_sem);
@@ -266,7 +266,7 @@ static int r8192se_wx_set_lps_awake_interval(struct net_device *dev,
         union iwreq_data *wrqu, char *extra)
 {
     struct r8192_priv *priv = rtllib_priv(dev);
-    PRT_POWER_SAVE_CONTROL     pPSC = (PRT_POWER_SAVE_CONTROL)(&(priv->rtllib->PowerSaveControl));
+    struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(priv->rtllib->PowerSaveControl));
 
     down(&priv->wx_sem);
 
index 7ae24d5..dd9ad6e 100644 (file)
@@ -1859,8 +1859,7 @@ struct rt_pm_wol_info {
        WOLPATTERN_TYPE PatternType;
 };//, *struct rt_pm_wol_info *;
 
-typedef struct _RT_POWER_SAVE_CONTROL
-{
+struct rt_pwr_save_ctrl {
 
        bool                            bInactivePs;
        bool                            bIPSModeBackup;
@@ -1917,7 +1916,7 @@ typedef struct _RT_POWER_SAVE_CONTROL
        u8                              oWLANMode;
        struct rt_pm_wol_info PmWoLPatternInfo[MAX_SUPPORT_WOL_PATTERN_NUM];
 
-}RT_POWER_SAVE_CONTROL,*PRT_POWER_SAVE_CONTROL;
+};//,*struct rt_pwr_save_ctrl *;
 
 typedef u32 RT_RF_CHANGE_SOURCE;
 #define RF_CHANGE_BY_SW BIT31
@@ -2391,7 +2390,7 @@ struct rtllib_device {
 
        RT_LINK_DETECT_T        LinkDetectInfo;
        bool bIsAggregateFrame;
-       RT_POWER_SAVE_CONTROL   PowerSaveControl;
+       struct rt_pwr_save_ctrl PowerSaveControl;
        u8 amsdu_in_process;
 
        /* used if IEEE_SOFTMAC_TX_QUEUE is set */
index 8cf42f0..64574ac 100644 (file)
@@ -1577,7 +1577,7 @@ void rtllib_associate_step2(struct rtllib_device *ieee)
 void rtllib_associate_complete_wq(void *data)
 {
        struct rtllib_device *ieee = (struct rtllib_device *)container_of_work_rsl(data, struct rtllib_device, associate_complete_wq);
-       PRT_POWER_SAVE_CONTROL pPSC = (PRT_POWER_SAVE_CONTROL)(&(ieee->PowerSaveControl));
+       struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(ieee->PowerSaveControl));
        printk(KERN_INFO "Associated successfully\n");
        if (ieee->is_silent_reset == 0){
             printk("normal associate\n");
@@ -2041,7 +2041,7 @@ short rtllib_sta_ps_sleep(struct rtllib_device *ieee, u32 *time_h, u32 *time_l)
 {
        int timeout = ieee->ps_timeout;
        u8 dtim;
-       PRT_POWER_SAVE_CONTROL  pPSC = (PRT_POWER_SAVE_CONTROL)(&(ieee->PowerSaveControl));
+       struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)(&(ieee->PowerSaveControl));
        /*if (ieee->ps == RTLLIB_PS_DISABLED ||
                ieee->iw_mode != IW_MODE_INFRA ||
                ieee->state != RTLLIB_LINKED)