]> www.infradead.org Git - users/hch/misc.git/commitdiff
staging: rtl8723bs: remove wrapper efuse_ReadEFuse
authorMichael Straube <straube.linux@gmail.com>
Sat, 23 Aug 2025 12:43:11 +0000 (14:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:54:56 +0000 (15:54 +0200)
The function efuse_ReadEFuse is just a wrapper around Hal_ReadEFuse.
Remove the wrapper and use Hal_ReadEFuse directly.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20250823124321.485910-5-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_efuse.c

index e865f83c09671cef6b41afd8c0cd94054746ccdf..1079e2bc3287af6d14cee627095211e54387e413 100644 (file)
@@ -97,46 +97,6 @@ Efuse_CalculateWordCnts(u8 word_en)
        return word_cnts;
 }
 
-/*  */
-/* Description: */
-/*             1. Execute E-Fuse read byte operation according as map offset and */
-/*                     save to E-Fuse table. */
-/*             2. Referred from SD1 Richard. */
-/*  */
-/* Assumption: */
-/*             1. Boot from E-Fuse and successfully auto-load. */
-/*             2. PASSIVE_LEVEL (USB interface) */
-/*  */
-/* Created by Roger, 2008.10.21. */
-/*  */
-/* 2008/12/12 MH       1. Reorganize code flow and reserve bytes. and add description. */
-/*                                     2. Add efuse utilization collect. */
-/* 2008/12/22 MH       Read Efuse must check if we write section 1 data again!!! Sec1 */
-/*                                     write addr must be after sec5. */
-/*  */
-
-void
-efuse_ReadEFuse(
-       struct adapter *Adapter,
-       u8 efuseType,
-       u16             _offset,
-       u16             _size_byte,
-       u8 *pbuf,
-bool   bPseudoTest
-       );
-void
-efuse_ReadEFuse(
-       struct adapter *Adapter,
-       u8 efuseType,
-       u16             _offset,
-       u16             _size_byte,
-       u8 *pbuf,
-bool   bPseudoTest
-       )
-{
-       Hal_ReadEFuse(Adapter, efuseType, _offset, _size_byte, pbuf, bPseudoTest);
-}
-
 void
 EFUSE_GetEfuseDefinition(
        struct adapter *padapter,
@@ -311,7 +271,7 @@ static void Efuse_ReadAllMap(struct adapter *padapter, u8 efuseType, u8 *Efuse)
 
        EFUSE_GetEfuseDefinition(padapter, efuseType, TYPE_EFUSE_MAP_LEN, (void *)&mapLen, false);
 
-       efuse_ReadEFuse(padapter, efuseType, 0, mapLen, Efuse, false);
+       Hal_ReadEFuse(padapter, efuseType, 0, mapLen, Efuse, false);
 
        Efuse_PowerSwitch(padapter, false, false);
 }