Skip to content

Commit 009798f

Browse files
mistraubegregkh
authored andcommitted
staging: rtl8723bs: remove wrapper Efuse_PowerSwitch
The function Efuse_PowerSwitch is just a wrapper around Hal_EfusePowerSwitch. Remove the wrapper and use Hal_EfusePowerSwitch directly. Signed-off-by: Michael Straube <straube.linux@gmail.com> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Trendbook Next 14 Link: https://lore.kernel.org/r/20250824095830.79233-2-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 5ff310c commit 009798f

3 files changed

Lines changed: 4 additions & 33 deletions

File tree

drivers/staging/rtl8723bs/core/rtw_efuse.c

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,6 @@ u8 fakeBTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN] = {0};
2929
#define REG_EFUSE_CTRL 0x0030
3030
#define EFUSE_CTRL REG_EFUSE_CTRL /* E-Fuse Control. */
3131

32-
/*-----------------------------------------------------------------------------
33-
* Function: Efuse_PowerSwitch
34-
*
35-
* Overview: When we want to enable write operation, we should change to
36-
* pwr on state. When we stop write, we should switch to 500k mode
37-
* and disable LDO 2.5V.
38-
*
39-
* Input: NONE
40-
*
41-
* Output: NONE
42-
*
43-
* Return: NONE
44-
*
45-
* Revised History:
46-
* When Who Remark
47-
* 11/17/2008 MHC Create Version 0.
48-
*
49-
*/
50-
void
51-
Efuse_PowerSwitch(
52-
struct adapter *padapter,
53-
u8 bWrite,
54-
u8 PwrState)
55-
{
56-
Hal_EfusePowerSwitch(padapter, bWrite, PwrState);
57-
}
58-
5932
/* 11/16/2008 MH Add description. Get current efuse area enabled word!!. */
6033
u8
6134
Efuse_CalculateWordCnts(u8 word_en)
@@ -191,13 +164,13 @@ static void Efuse_ReadAllMap(struct adapter *padapter, u8 efuseType, u8 *Efuse)
191164
{
192165
u16 mapLen = 0;
193166

194-
Efuse_PowerSwitch(padapter, false, true);
167+
Hal_EfusePowerSwitch(padapter, false, true);
195168

196169
Hal_GetEfuseDefinition(padapter, efuseType, TYPE_EFUSE_MAP_LEN, (void *)&mapLen);
197170

198171
Hal_ReadEFuse(padapter, efuseType, 0, mapLen, Efuse);
199172

200-
Efuse_PowerSwitch(padapter, false, false);
173+
Hal_EfusePowerSwitch(padapter, false, false);
201174
}
202175

203176
/*-----------------------------------------------------------------------------

drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,9 +1474,9 @@ void Hal_EfuseParsePackageType_8723B(
14741474
u8 package;
14751475
u8 efuseContent;
14761476

1477-
Efuse_PowerSwitch(padapter, false, true);
1477+
Hal_EfusePowerSwitch(padapter, false, true);
14781478
efuse_OneByteRead(padapter, 0x1FB, &efuseContent);
1479-
Efuse_PowerSwitch(padapter, false, false);
1479+
Hal_EfusePowerSwitch(padapter, false, false);
14801480

14811481
package = efuseContent & 0x7;
14821482
switch (package) {

drivers/staging/rtl8723bs/include/rtw_efuse.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ extern u8 fakeBTEfuseModifiedMap[];
9393
u8 Efuse_CalculateWordCnts(u8 word_en);
9494
u8 efuse_OneByteRead(struct adapter *padapter, u16 addr, u8 *data);
9595

96-
void Efuse_PowerSwitch(struct adapter *padapter, u8 bWrite, u8 PwrState);
97-
9896
u8 EFUSE_Read1Byte(struct adapter *padapter, u16 Address);
9997
void EFUSE_ShadowMapUpdate(struct adapter *padapter, u8 efuseType);
10098
void EFUSE_ShadowRead(struct adapter *padapter, u8 Type, u16 Offset, u32 *Value);

0 commit comments

Comments
 (0)