Commit 82ec1977 authored by Bhanusree Pola's avatar Bhanusree Pola Committed by Greg Kroah-Hartman

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: default avatarBhanusree Pola <bhanusreemahesh@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d83908ed
...@@ -1518,7 +1518,7 @@ typedef enum _RT_RF_POWER_STATE { ...@@ -1518,7 +1518,7 @@ typedef enum _RT_RF_POWER_STATE {
eRfOff eRfOff
} RT_RF_POWER_STATE; } RT_RF_POWER_STATE;
typedef struct _RT_POWER_SAVE_CONTROL { struct rt_power_save_control {
// //
// Inactive Power Save(IPS) : Disable RF when disconnected // Inactive Power Save(IPS) : Disable RF when disconnected
...@@ -1562,7 +1562,7 @@ typedef struct _RT_POWER_SAVE_CONTROL { ...@@ -1562,7 +1562,7 @@ typedef struct _RT_POWER_SAVE_CONTROL {
// //
bool bLeisurePs; bool bLeisurePs;
} RT_POWER_SAVE_CONTROL, *PRT_POWER_SAVE_CONTROL; };
typedef u32 RT_RF_CHANGE_SOURCE; typedef u32 RT_RF_CHANGE_SOURCE;
#define RF_CHANGE_BY_SW BIT(31) #define RF_CHANGE_BY_SW BIT(31)
...@@ -1878,7 +1878,7 @@ struct ieee80211_device { ...@@ -1878,7 +1878,7 @@ struct ieee80211_device {
//added by amy for AP roaming //added by amy for AP roaming
RT_LINK_DETECT_T LinkDetectInfo; RT_LINK_DETECT_T LinkDetectInfo;
//added by amy for ps //added by amy for ps
RT_POWER_SAVE_CONTROL PowerSaveControl; struct rt_power_save_control PowerSaveControl;
//} //}
/* used if IEEE_SOFTMAC_TX_QUEUE is set */ /* used if IEEE_SOFTMAC_TX_QUEUE is set */
struct tx_pending tx_pending; struct tx_pending tx_pending;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment