staging: r8188eu: remove unused enum and defines
authorMichael Straube <straube.linux@gmail.com>
Sun, 2 Jan 2022 13:11:33 +0000 (14:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Jan 2022 13:31:08 +0000 (14:31 +0100)
Remove the unused enum rf90_radio_path and some unused defines.

Acked-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220102131141.12310-4-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/rtw_eeprom.h
drivers/staging/r8188eu/include/rtw_rf.h

index e517239bd75e7b7fb4791eb53f5c1b6a97ee5a79..22c2eddd5e75b5163b283f5ee16f4bc014963bec 100644 (file)
 #define EEPROM_EWEN_OPCODE             19      /*  Erase/write enable */
 #define EEPROM_EWDS_OPCODE             16      /*  Erase/write disable */
 
-/* Country codes */
-#define USA                            0x555320
-#define EUROPE                         0x1 /* temp, should be provided later */
-#define JAPAN                          0x2 /* temp, should be provided later */
-
 #define        EEPROM_CID_DEFAULT              0x0
 #define        EEPROM_CID_ALPHA                0x1
 #define        EEPROM_CID_Senao                0x3
index 2308a00b5dec2ed6ac762565370df88c54c58cdb..b7267e75346cb40e57775bd0ff39b96672f4cba4 100644 (file)
@@ -6,28 +6,16 @@
 
 #include "rtw_cmd.h"
 
-#define OFDM_PHY               1
-#define MIXED_PHY              2
-#define CCK_PHY                3
-
 #define NumRates       (13)
 
 /*  slot time for 11g */
 #define SHORT_SLOT_TIME                        9
 #define NON_SHORT_SLOT_TIME            20
 
-#define RTL8711_RF_MAX_SENS            6
-#define RTL8711_RF_DEF_SENS            4
-
 #define        MAX_CHANNEL_NUM                 14      /* 2.4 GHz only */
 
 #define NUM_REGULATORYS        1
 
-/* Country codes */
-#define USA                            0x555320
-#define EUROPE                         0x1 /* temp, should be provided later */
-#define JAPAN                          0x2 /* temp, should be provided later */
-
 struct regulatory_class {
        u32     starting_freq;                          /* MHz, */
        u8      channel_set[MAX_CHANNEL_NUM];
@@ -64,13 +52,6 @@ enum _REG_PREAMBLE_MODE {
        PREAMBLE_SHORT  = 3,
 };
 
-enum rf90_radio_path {
-       RF90_PATH_A = 0,                /* Radio Path A */
-       RF90_PATH_B = 1,                /* Radio Path B */
-       RF90_PATH_C = 2,                /* Radio Path C */
-       RF90_PATH_D = 3                 /* Radio Path D */
-};
-
 /*  Bandwidth Offset */
 #define HAL_PRIME_CHNL_OFFSET_DONT_CARE        0
 #define HAL_PRIME_CHNL_OFFSET_LOWER    1