]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging: rtl8723bs: Remove unused function Hal_BT_EfusePowerSwitch
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 15 Sep 2024 06:38:24 +0000 (08:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Oct 2024 09:48:28 +0000 (11:48 +0200)
Remove unused function Hal_BT_EfusePowerSwitch and belonging unused
function pointer in struct hal_ops BTEfusePowerSwitch.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/2768736f969eaf935df1492ffd5afd98b05db11e.1726339782.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
drivers/staging/rtl8723bs/include/hal_intf.h

index ea0a9849d28b175bbe6050461389424634f0d196..4c6d9f1fa89504f19e318903fd8bec225342e9e7 100644 (file)
@@ -604,45 +604,6 @@ static void Hal_GetEfuseDefinition(
 #define EFUSE_ACCESS_ON_8723                   0x69    /*  For RTL8723 only. */
 #define REG_EFUSE_ACCESS_8723                  0x00CF  /*  Efuse access protection for RTL8723 */
 
-/*  */
-static void Hal_BT_EfusePowerSwitch(
-       struct adapter *padapter, u8 bWrite, u8 PwrState
-)
-{
-       u8 tempval;
-       if (PwrState) {
-               /*  enable BT power cut */
-               /*  0x6A[14] = 1 */
-               tempval = rtw_read8(padapter, 0x6B);
-               tempval |= BIT(6);
-               rtw_write8(padapter, 0x6B, tempval);
-
-               /*  Attention!! Between 0x6A[14] and 0x6A[15] setting need 100us delay */
-               /*  So don't write 0x6A[14]= 1 and 0x6A[15]= 0 together! */
-               msleep(1);
-               /*  disable BT output isolation */
-               /*  0x6A[15] = 0 */
-               tempval = rtw_read8(padapter, 0x6B);
-               tempval &= ~BIT(7);
-               rtw_write8(padapter, 0x6B, tempval);
-       } else {
-               /*  enable BT output isolation */
-               /*  0x6A[15] = 1 */
-               tempval = rtw_read8(padapter, 0x6B);
-               tempval |= BIT(7);
-               rtw_write8(padapter, 0x6B, tempval);
-
-               /*  Attention!! Between 0x6A[14] and 0x6A[15] setting need 100us delay */
-               /*  So don't write 0x6A[14]= 1 and 0x6A[15]= 0 together! */
-
-               /*  disable BT power cut */
-               /*  0x6A[14] = 1 */
-               tempval = rtw_read8(padapter, 0x6B);
-               tempval &= ~BIT(6);
-               rtw_write8(padapter, 0x6B, tempval);
-       }
-
-}
 static void Hal_EfusePowerSwitch(
        struct adapter *padapter, u8 bWrite, u8 PwrState
 )
@@ -1906,7 +1867,6 @@ void rtl8723b_set_hal_ops(struct hal_ops *pHalFunc)
        pHalFunc->write_rfreg = &PHY_SetRFReg_8723B;
 
        /*  Efuse related function */
-       pHalFunc->BTEfusePowerSwitch = &Hal_BT_EfusePowerSwitch;
        pHalFunc->EfusePowerSwitch = &Hal_EfusePowerSwitch;
        pHalFunc->ReadEFuse = &Hal_ReadEFuse;
        pHalFunc->EFUSEGetEfuseDefinition = &Hal_GetEfuseDefinition;
index be52288a2f1a4cfbce48165491c0de78c611dc6f..d41f458d117edc7dc4f8dd677afca44ad5332e28 100644 (file)
@@ -230,7 +230,6 @@ struct hal_ops {
        void (*write_rfreg)(struct adapter *padapter, u8 eRFPath, u32 RegAddr, u32 BitMask, u32 Data);
 
        void (*EfusePowerSwitch)(struct adapter *padapter, u8 bWrite, u8 PwrState);
-       void (*BTEfusePowerSwitch)(struct adapter *padapter, u8 bWrite, u8 PwrState);
        void (*ReadEFuse)(struct adapter *padapter, u8 efuseType, u16 _offset, u16 _size_byte, u8 *pbuf, bool bPseudoTest);
        void (*EFUSEGetEfuseDefinition)(struct adapter *padapter, u8 efuseType, u8 type, void *pOut, bool bPseudoTest);
        u16 (*EfuseGetCurrentSize)(struct adapter *padapter, u8 efuseType, bool bPseudoTest);