mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 20:46:48 +02:00
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>
This commit is contained in:
parent
5ff310ce43
commit
009798ff04
|
|
@ -29,33 +29,6 @@ u8 fakeBTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN] = {0};
|
|||
#define REG_EFUSE_CTRL 0x0030
|
||||
#define EFUSE_CTRL REG_EFUSE_CTRL /* E-Fuse Control. */
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
* Function: Efuse_PowerSwitch
|
||||
*
|
||||
* Overview: When we want to enable write operation, we should change to
|
||||
* pwr on state. When we stop write, we should switch to 500k mode
|
||||
* and disable LDO 2.5V.
|
||||
*
|
||||
* Input: NONE
|
||||
*
|
||||
* Output: NONE
|
||||
*
|
||||
* Return: NONE
|
||||
*
|
||||
* Revised History:
|
||||
* When Who Remark
|
||||
* 11/17/2008 MHC Create Version 0.
|
||||
*
|
||||
*/
|
||||
void
|
||||
Efuse_PowerSwitch(
|
||||
struct adapter *padapter,
|
||||
u8 bWrite,
|
||||
u8 PwrState)
|
||||
{
|
||||
Hal_EfusePowerSwitch(padapter, bWrite, PwrState);
|
||||
}
|
||||
|
||||
/* 11/16/2008 MH Add description. Get current efuse area enabled word!!. */
|
||||
u8
|
||||
Efuse_CalculateWordCnts(u8 word_en)
|
||||
|
|
@ -191,13 +164,13 @@ static void Efuse_ReadAllMap(struct adapter *padapter, u8 efuseType, u8 *Efuse)
|
|||
{
|
||||
u16 mapLen = 0;
|
||||
|
||||
Efuse_PowerSwitch(padapter, false, true);
|
||||
Hal_EfusePowerSwitch(padapter, false, true);
|
||||
|
||||
Hal_GetEfuseDefinition(padapter, efuseType, TYPE_EFUSE_MAP_LEN, (void *)&mapLen);
|
||||
|
||||
Hal_ReadEFuse(padapter, efuseType, 0, mapLen, Efuse);
|
||||
|
||||
Efuse_PowerSwitch(padapter, false, false);
|
||||
Hal_EfusePowerSwitch(padapter, false, false);
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -1474,9 +1474,9 @@ void Hal_EfuseParsePackageType_8723B(
|
|||
u8 package;
|
||||
u8 efuseContent;
|
||||
|
||||
Efuse_PowerSwitch(padapter, false, true);
|
||||
Hal_EfusePowerSwitch(padapter, false, true);
|
||||
efuse_OneByteRead(padapter, 0x1FB, &efuseContent);
|
||||
Efuse_PowerSwitch(padapter, false, false);
|
||||
Hal_EfusePowerSwitch(padapter, false, false);
|
||||
|
||||
package = efuseContent & 0x7;
|
||||
switch (package) {
|
||||
|
|
|
|||
|
|
@ -93,8 +93,6 @@ extern u8 fakeBTEfuseModifiedMap[];
|
|||
u8 Efuse_CalculateWordCnts(u8 word_en);
|
||||
u8 efuse_OneByteRead(struct adapter *padapter, u16 addr, u8 *data);
|
||||
|
||||
void Efuse_PowerSwitch(struct adapter *padapter, u8 bWrite, u8 PwrState);
|
||||
|
||||
u8 EFUSE_Read1Byte(struct adapter *padapter, u16 Address);
|
||||
void EFUSE_ShadowMapUpdate(struct adapter *padapter, u8 efuseType);
|
||||
void EFUSE_ShadowRead(struct adapter *padapter, u8 Type, u16 Offset, u32 *Value);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user