]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8188eu: remove unused enum and defines
authorMichael Straube <straube.linux@gmail.com>
Sat, 18 Jan 2020 17:33:43 +0000 (18:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jan 2020 08:44:44 +0000 (09:44 +0100)
IQK_BB_REG_NUM_MAX, RTL8711_RF_MAX_SENS, RTL8711_RF_DEF_SENS,
NUM_REGULATORYS and enum _RTL8712_RF_MIMO_CONFIG_ are not used
in the driver code, remove them.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20200118173343.32405-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/odm.h
drivers/staging/rtl8188eu/include/rtw_rf.h

index 8245cea2feeffe9f409a2073df44b03febb9a677..9d39fe13626a351e0a9e362505ea3dd0db121eb0 100644 (file)
@@ -239,7 +239,6 @@ struct odm_rate_adapt {
 
 #define IQK_MAC_REG_NUM                4
 #define IQK_ADDA_REG_NUM       16
-#define IQK_BB_REG_NUM_MAX     10
 #define IQK_BB_REG_NUM         9
 #define HP_THERMAL_NUM         8
 
index b5dfb226f32a3384c613c9b601337905664a2337..c3847cf16ec1e38d374c53b78f906b1b42c33aa4 100644 (file)
@@ -19,9 +19,6 @@
 #define SHORT_SLOT_TIME                        9
 #define NON_SHORT_SLOT_TIME            20
 
-#define RTL8711_RF_MAX_SENS            6
-#define RTL8711_RF_DEF_SENS            4
-
 /*  We now define the following channels as the max channels in each
  * channel plan.
  */
@@ -30,8 +27,6 @@
 #define        MAX_CHANNEL_NUM_2G              14
 #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 */
@@ -74,17 +69,6 @@ enum _REG_PREAMBLE_MODE {
        PREAMBLE_SHORT  = 3,
 };
 
-enum _RTL8712_RF_MIMO_CONFIG_ {
-       RTL8712_RFCONFIG_1T = 0x10,
-       RTL8712_RFCONFIG_2T = 0x20,
-       RTL8712_RFCONFIG_1R = 0x01,
-       RTL8712_RFCONFIG_2R = 0x02,
-       RTL8712_RFCONFIG_1T1R = 0x11,
-       RTL8712_RFCONFIG_1T2R = 0x12,
-       RTL8712_RFCONFIG_TURBO = 0x92,
-       RTL8712_RFCONFIG_2T2R = 0x22
-};
-
 enum rf90_radio_path {
        RF90_PATH_A = 0,                /* Radio Path A */
        RF90_PATH_B = 1,                /* Radio Path B */