Skip to content

Commit 5cea88c

Browse files
mistraubegregkh
authored andcommitted
staging: rtl8723bs: remove REG_EFUSE_ACCESS_8723 and EFUSE_ACCESS_ON_8723
The macros REG_EFUSE_ACCESS_8723 and EFUSE_ACCESS_ON_8723 are redundant, both are already defined in header files without the _8723 suffix. Remove them and use the marcos from the header files. rtl8723b_hal.h:138: #define EFUSE_ACCESS_ON 0x69 /* For RTL8723 only. */ hal_com_reg.h:35: #define REG_EFUSE_ACCESS 0x00CF /* Efuse access protection for RTL8723 */ 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-4-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 236faa3 commit 5cea88c

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -568,13 +568,6 @@ void Hal_GetEfuseDefinition(
568568
}
569569
}
570570

571-
/* */
572-
/* The following is for compile ok */
573-
/* That should be merged with the original in the future */
574-
/* */
575-
#define EFUSE_ACCESS_ON_8723 0x69 /* For RTL8723 only. */
576-
#define REG_EFUSE_ACCESS_8723 0x00CF /* Efuse access protection for RTL8723 */
577-
578571
void Hal_EfusePowerSwitch(
579572
struct adapter *padapter, u8 PwrState
580573
)
@@ -609,7 +602,7 @@ void Hal_EfusePowerSwitch(
609602
} while (1);
610603
}
611604

612-
rtw_write8(padapter, REG_EFUSE_ACCESS_8723, EFUSE_ACCESS_ON_8723);
605+
rtw_write8(padapter, REG_EFUSE_ACCESS, EFUSE_ACCESS_ON);
613606

614607
/* Reset: 0x0000h[28], default valid */
615608
tmpV16 = rtw_read16(padapter, REG_SYS_FUNC_EN);

0 commit comments

Comments
 (0)