staging: rtl8192u: Remove typedef for struct _bandwidth_autoswitch
authorBhanusree Pola <bhanusreemahesh@gmail.com>
Mon, 11 Mar 2019 15:41:35 +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 bandwidth_autoswitch and *pbandwidth_autoswitch of
struct _bandwidth_autoswitch.
-Change Structure name _bandwidth_autoswitch to bandwidth_autoswitch to
maintain Linux kernel Coding Style.
-Replace occurence of bandwidth_autoswitch to struct bandwidth_autoswitch.

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

index 8aa536d7990002ca16bafa94660e0c376b04b752..ce79b83219614128b261a83cd36090d5fc9c57e8 100644 (file)
@@ -1462,12 +1462,12 @@ struct tx_pending {
        struct ieee80211_txb *txb;
 };
 
-typedef struct _bandwidth_autoswitch {
+struct bandwidth_autoswitch {
        long threshold_20Mhzto40Mhz;
        long    threshold_40Mhzto20Mhz;
        bool bforced_tx20Mhz;
        bool bautoswitch_enable;
-} bandwidth_autoswitch, *pbandwidth_autoswitch;
+};
 
 
 //added by amy for order
@@ -1871,7 +1871,7 @@ struct ieee80211_device {
        Fsync_State                     fsync_state;
        bool            bis_any_nonbepkts;
        //20Mhz 40Mhz AutoSwitch Threshold
-       bandwidth_autoswitch bandwidth_auto_switch;
+       struct bandwidth_autoswitch bandwidth_auto_switch;
        //for txpower tracking
        bool FwRWRF;