mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Philipp Hortmann <philipp.g.hortmann@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Cc: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Subject: [PATCH 10/17] staging: rtl8723bs: Remove unused function Hal_BT_EfusePowerSwitch
Date: Sun, 15 Sep 2024 08:38:24 +0200	[thread overview]
Message-ID: <2768736f969eaf935df1492ffd5afd98b05db11e.1726339782.git.philipp.g.hortmann@gmail.com> (raw)
In-Reply-To: <cover.1726339782.git.philipp.g.hortmann@gmail.com>

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>
---
 .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 40 -------------------
 drivers/staging/rtl8723bs/include/hal_intf.h  |  1 -
 2 files changed, 41 deletions(-)

diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
index ea0a9849d28b..4c6d9f1fa895 100644
--- a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
+++ b/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
@@ -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;
diff --git a/drivers/staging/rtl8723bs/include/hal_intf.h b/drivers/staging/rtl8723bs/include/hal_intf.h
index be52288a2f1a..d41f458d117e 100644
--- a/drivers/staging/rtl8723bs/include/hal_intf.h
+++ b/drivers/staging/rtl8723bs/include/hal_intf.h
@@ -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);
-- 
2.43.0


  parent reply	other threads:[~2024-09-15  6:41 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-15  6:38 [PATCH 00/17] staging: rtl8723bs: Remove unused functions including read_cam Philipp Hortmann
2024-09-15  6:38 ` [PATCH 01/17] staging: rtl8723bs: Remove unused function dvobj_get_port0_adapter Philipp Hortmann
2024-09-15  6:38 ` [PATCH 02/17] staging: rtl8723bs: Remove unused function rtw_search_max_mac_id Philipp Hortmann
2024-09-15  6:38 ` [PATCH 03/17] staging: rtl8723bs: Remove unused function read_cam Philipp Hortmann
2024-09-15  6:38 ` [PATCH 04/17] staging: rtl8723bs: Remove unused function rtw_get_oper_choffset Philipp Hortmann
2024-09-15  6:38 ` [PATCH 05/17] staging: rtl8723bs: Remove unused function rtw_get_oper_bw Philipp Hortmann
2024-09-15  6:38 ` [PATCH 06/17] staging: rtl8723bs: Remove unused function _ReadCAM Philipp Hortmann
2024-09-15  6:38 ` [PATCH 07/17] staging: rtl8723bs: Remove unused entries from struct hal_ops Philipp Hortmann
2024-09-15  6:38 ` [PATCH 08/17] staging: rtl8723bs: Remove unused function PHY_SetBWMode8723B Philipp Hortmann
2024-09-15  6:38 ` [PATCH 09/17] staging: rtl8723bs: Remove unused function PHY_GetTxPowerLevel8723B Philipp Hortmann
2024-09-15  6:38 ` Philipp Hortmann [this message]
2024-09-15  6:38 ` [PATCH 11/17] staging: rtl8723bs: Remove unused function rtl8723b_GetHalODMVar Philipp Hortmann
2024-09-15  6:38 ` [PATCH 12/17] staging: rtl8723bs: Remove unused function GetHalODMVar Philipp Hortmann
2024-09-15  6:38 ` [PATCH 13/17] staging: rtl8723bs: Remove unused function rtl8723bs_inirp_init Philipp Hortmann
2024-09-15  6:38 ` [PATCH 14/17] staging: rtl8723bs: Remove unused function rtl8723bs_inirp_deinit Philipp Hortmann
2024-09-15  6:38 ` [PATCH 15/17] staging: rtl8723bs: Remove constant result macro is_primary_adapter Philipp Hortmann
2024-09-15  6:38 ` [PATCH 16/17] staging: rtl8723bs: Remove constant result macro get_iface_type Philipp Hortmann
2024-09-15  6:38 ` [PATCH 17/17] staging: rtl8723bs: Remove unused enum with first entry IFACE_PORT0 Philipp Hortmann
2024-09-15 14:44 ` [PATCH 00/17] staging: rtl8723bs: Remove unused functions including read_cam Dan Carpenter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2768736f969eaf935df1492ffd5afd98b05db11e.1726339782.git.philipp.g.hortmann@gmail.com \
    --to=philipp.g.hortmann@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®