staging: rtl8192u: Remove typedef for struct _RT_POWER_SAVE_CONTROL

-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>
This commit is contained in:
Bhanusree Pola 2019-03-11 21:11:37 +05:30 committed by Greg Kroah-Hartman
parent d83908ed0f
commit 82ec1977b3
1 changed files with 4 additions and 4 deletions

View 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;