staging: rtl8192u: Remove typedef for struct _RT_POWER_SAVE_CONTROL
authorBhanusree Pola <bhanusreemahesh@gmail.com>
Mon, 11 Mar 2019 15:41:37 +0000 (21:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:05:23 +0000 (07:05 +0100)
-Avoid typedefs for structure types to maintain kernel coding style.
-Remove typedefs RT_POWER_SAVE_CONTROL and *PRT_POWER_SAVE_CONTROL of struct _RT_POWER_SAVE_CONTROL.
-Change Structure name _RT_POWER_SAVE_CONTROL to rt_power_save_control to maintain Linux kernel Coding Style.
-Replace occurence of _RT_POWER_SAVE_CONTROL to struct rt_power_save_control.

Signed-off-by: Bhanusree Pola <bhanusreemahesh@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211.h

index d78bc976cc699e31c0deead6438cdb7562a6a086..c8c0e4282fea5b5af26b11f75c58fae0f47eeeef 100644 (file)
@@ -1518,7 +1518,7 @@ typedef   enum _RT_RF_POWER_STATE {
        eRfOff
 } RT_RF_POWER_STATE;
 
-typedef struct _RT_POWER_SAVE_CONTROL {
+struct rt_power_save_control {
 
        //
        // Inactive Power Save(IPS) : Disable RF when disconnected
@@ -1562,7 +1562,7 @@ typedef struct _RT_POWER_SAVE_CONTROL {
        //
        bool                            bLeisurePs;
 
-} RT_POWER_SAVE_CONTROL, *PRT_POWER_SAVE_CONTROL;
+};
 
 typedef u32 RT_RF_CHANGE_SOURCE;
 #define RF_CHANGE_BY_SW                BIT(31)
@@ -1876,9 +1876,9 @@ struct ieee80211_device {
        bool FwRWRF;
 
        //added by amy for AP roaming
-       RT_LINK_DETECT_T        LinkDetectInfo;
+       RT_LINK_DETECT_T        LinkDetectInfo;
        //added by amy for ps
-       RT_POWER_SAVE_CONTROL   PowerSaveControl;
+       struct rt_power_save_control PowerSaveControl;
 //}
        /* used if IEEE_SOFTMAC_TX_QUEUE is set */
        struct  tx_pending tx_pending;