]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: remove unused RTL8188E antenna selection macros
authorMashiro Chen <mashiro.chen@mailbox.org>
Tue, 31 Mar 2026 05:04:34 +0000 (13:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Mar 2026 08:41:48 +0000 (10:41 +0200)
Remove the SET_TX_DESC_ANTSEL_{A,B,C}_88E macros from odm_types.h.
These are leftover dead code for the RTL8188E chip and have no callers
in the rtl8723bs driver. The RTL8188E is a different chip family and
has its own driver at drivers/net/wireless/realtek/rtl8xxxu

This addresses the TODO item "find and remove any code for other chips
that is left over".

Signed-off-by: Mashiro Chen <mashiro.chen@mailbox.org>
Link: https://patch.msgid.link/20260331050434.102744-1-mashiro.chen@mailbox.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/odm_types.h

index 8168dc14e87960feaa7e673e4c832256fb02bb12..0da662e1493a6fad9604b1dc6225229d832c7c2b 100644 (file)
@@ -36,10 +36,6 @@ enum hal_status {
        #define STA_INFO_T                      struct sta_info
        #define PSTA_INFO_T             struct sta_info *
 
-       #define SET_TX_DESC_ANTSEL_A_88E(__pTxDesc, __Value) SET_BITS_TO_LE_4BYTE(__pTxDesc+8, 24, 1, __Value)
-       #define SET_TX_DESC_ANTSEL_B_88E(__pTxDesc, __Value) SET_BITS_TO_LE_4BYTE(__pTxDesc+8, 25, 1, __Value)
-       #define SET_TX_DESC_ANTSEL_C_88E(__pTxDesc, __Value) SET_BITS_TO_LE_4BYTE(__pTxDesc+28, 29, 1, __Value)
-
        /* define useless flag to avoid compile warning */
        #define USE_WORKITEM 0
        #define   FPGA_TWO_MAC_VERIFICATION     0