staging: rtl8723bs: remove typedefs in rtw_ht.h
authorMarco Cesati <marcocesati@gmail.com>
Fri, 12 Mar 2021 08:26:18 +0000 (09:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Mar 2021 16:25:40 +0000 (17:25 +0100)
This commit fixes the following checkpatch.pl warnings:

    WARNING: do not add new typedefs
    #40: FILE: include/rtw_ht.h:40:
    +typedef enum AGGRE_SIZE {

    WARNING: do not add new typedefs
    #51: FILE: include/rtw_ht.h:51:
    +typedef enum _RT_HT_INF0_CAP {

    WARNING: do not add new typedefs
    #62: FILE: include/rtw_ht.h:62:
    +typedef enum _RT_HT_INF1_CAP {

Signed-off-by: Marco Cesati <marco.cesati@gmail.com>
Link: https://lore.kernel.org/r/20210312082638.25512-14-marco.cesati@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/include/rtw_ht.h

index a72f510..bce5bff 100644 (file)
@@ -37,7 +37,7 @@ struct ht_priv {
 
 };
 
-typedef enum AGGRE_SIZE {
+enum AGGRE_SIZE_E {
        HT_AGG_SIZE_8K = 0,
        HT_AGG_SIZE_16K = 1,
        HT_AGG_SIZE_32K = 2,
@@ -46,9 +46,9 @@ typedef enum AGGRE_SIZE {
        VHT_AGG_SIZE_256K = 5,
        VHT_AGG_SIZE_512K = 6,
        VHT_AGG_SIZE_1024K = 7,
-} AGGRE_SIZE_E, *PAGGRE_SIZE_E;
+};
 
-typedef enum _RT_HT_INF0_CAP {
+enum RT_HT_INF0_CAPBILITY {
        RT_HT_CAP_USE_TURBO_AGGR = 0x01,
        RT_HT_CAP_USE_LONG_PREAMBLE = 0x02,
        RT_HT_CAP_USE_AMPDU = 0x04,
@@ -57,13 +57,13 @@ typedef enum _RT_HT_INF0_CAP {
        RT_HT_CAP_USE_92SE = 0x20,
        RT_HT_CAP_USE_88C_92C = 0x40,
        RT_HT_CAP_USE_AP_CLIENT_MODE = 0x80,    /*  AP team request to reserve this bit, by Emily */
-} RT_HT_INF0_CAPBILITY, *PRT_HT_INF0_CAPBILITY;
+};
 
-typedef enum _RT_HT_INF1_CAP {
+enum RT_HT_INF1_CAPBILITY {
        RT_HT_CAP_USE_VIDEO_CLIENT = 0x01,
        RT_HT_CAP_USE_JAGUAR_BCUT = 0x02,
        RT_HT_CAP_USE_JAGUAR_CCUT = 0x04,
-} RT_HT_INF1_CAPBILITY, *PRT_HT_INF1_CAPBILITY;
+};
 
 #define        LDPC_HT_ENABLE_RX                       BIT0
 #define        LDPC_HT_ENABLE_TX                       BIT1