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

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

index ce79b83..d78bc97 100644 (file)
@@ -1506,9 +1506,9 @@ typedef enum _RT_JOIN_ACTION {
        RT_NO_ACTION  = 4,
 } RT_JOIN_ACTION;
 
-typedef struct _IbssParms {
+struct ibss_parms {
        u16   atimWin;
-} IbssParms, *PIbssParms;
+};
 #define MAX_NUM_RATES  264 // Max num of support rates element: 8,  Max num of ext. support rate: 255. 061122, by rcnjko.
 
 // RF state.
@@ -1554,7 +1554,7 @@ typedef struct _RT_POWER_SAVE_CONTROL {
        struct octet_string                     tmpSuppRateSet;
        u8                                      tmpSuppRateBuf[MAX_NUM_RATES];
        bool                            bTmpSuppRate;
-       IbssParms                               tmpIbpm;
+       struct ibss_parms                       tmpIbpm;
        bool                            bTmpIbpm;
 
        //