]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Staging: rtl8723bs: Remove typedef in struct dynamic_primary_CCA
authorMadhumitha Prabakaran <madhumithabiw@gmail.com>
Tue, 2 Apr 2019 14:37:33 +0000 (09:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Apr 2019 17:51:06 +0000 (19:51 +0200)
Remove typedef in struct dynamic_primary_CCA, as a struct that has
elements that can reasonably be directly accessed should never be a
typedef.

Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/odm.h

index 23ab160ac2c8feb35f3b47c7f787c81c192c9d7a..4f1aeb8ded292f99c3a53da9199e1356c99c5a82 100644 (file)
 
 /* Remove DIG by yuchen */
 
-typedef struct _Dynamic_Primary_CCA {
+struct dynamic_primary_CCA {
        u8 PriCCA_flag;
        u8 intf_flag;
        u8 intf_type;
        u8 DupRTS_flag;
        u8 Monitor_flag;
        u8 CH_offset;
-       u8      MF_state;
-} Pri_CCA_T, *pPri_CCA_T;
+       u8 MF_state;
+};
 
 typedef struct _Rate_Adaptive_Table_ {
        u8 firstconnect;
@@ -1112,7 +1112,7 @@ typedef  struct DM_Out_Source_Dynamic_Mechanism_Structure {
        FAT_T DM_FatTable;
        DIG_T DM_DigTable;
        PS_T DM_PSTable;
-       Pri_CCA_T DM_PriCCA;
+       struct dynamic_primary_CCA DM_PriCCA;
        RXHP_T DM_RXHP_Table;
        RA_T DM_RA_Table;
        false_ALARM_STATISTICS FalseAlmCnt;