staging: rtl8723bs: remove todo/note and duplicated EFUSE_CTRL macro
PATCH 1/1 staging: rtl8723bs: remove todo/note and duplicated EFUSE_CTRL macro
The usage of EFUSE_xxx and MSR macros are already in place, so the note and todo about that can be removed. Also, there was a duplication of the definition of EFUSE_CTRL macro in two places, keep the one at the .h file.
---
At drivers/staging/rtl8723bs/include/hal_com_reg.h file, there is the following note/TODO:
/* TODO: use these definition when using REG_xxx naming rule. */ /* NOTE: DO NOT Remove these definition. Use later. */
#define EFUSE_CTRL REG_EFUSE_CTRL /* E-Fuse Control. */
#define EFUSE_TEST REG_EFUSE_TEST /* E-Fuse Test. */
#define MSR (REG_CR + 2) /* Media Status register */
I guess the idea was to standardize those macros rather using the REG_xxx_yyy ones. In fact, when searching for a missusage of that, there is none, only a duplicated redefinition of EFUSE_CTRL at drivers/staging/rtl8723bs/core/rtw_efuse.c.
If my interpretation is correct about that comment, Im think we can remove the note/TODO since its very old. Also, I`m removing the duplicated define, since the hal_com_reg.h is already included at rtw_efuse.c.
Tks and regards.
--- drivers/staging/rtl8723bs/core/rtw_efuse.c | 3 --- drivers/staging/rtl8723bs/include/hal_com_reg.h | 4 ---- 2 files changed, 7 deletions(-)
drivers/staging/rtl8723bs/core/rtw_efuse.c +0 -3
@@ -26,9 +26,6 @@ u8 fakeBTEfuseContent[EFUSE_MAX_BT_BANK][EFUSE_MAX_HW_SIZE];u8 fakeBTEfuseInitMap[EFUSE_BT_MAX_MAP_LEN ] = {0 };u8 fakeBTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN ] = {0 }; -#define REG_EFUSE_CTRL 0x0030 -#define EFUSE_CTRL REG_EFUSE_CTRL/* E-Fuse Control. */ -static bool Efuse_Read1ByteFromFakeContent (u16 Offset,u8 *Value) {
drivers/staging/rtl8723bs/include/hal_com_reg.h +0 -4
@@ -189,10 +189,6 @@/* Redifine 8192C register definition for compatibility */ /* */ /* */ - -/* TODO: use these definition when using REG_xxx naming rule. */ -/* NOTE: DO NOT Remove these definition. Use later. */ -#define EFUSE_CTRL REG_EFUSE_CTRL/* E-Fuse Control. */ #define EFUSE_TEST REG_EFUSE_TEST/* E-Fuse Test. */ #define MSR (REG_CR + 2)/* Media Status register */
Signature · 1 line
2.48.1
Greg KH
maintainerQuoted 61 lines · Rodrigo Gobbi
The usage of
EFUSE_xxxand MSR macros are already in place, so the note and todo about that can be removed. Also, there was a duplication of the definition ofEFUSE_CTRLmacro in two places, keep the one at the .h file.Signed-off-by Rodrigo Gobbi <[email protected]>---
Atdrivers/staging/rtl8723bs/include/hal_com_reg.hfile, there is the following note/TODO:/* TODO: use these definition when using
REG_xxxnaming rule. */ /* NOTE: DO NOT Remove these definition. Use later. */#define
EFUSE_CTRLREG_EFUSE_CTRL/* E-Fuse Control. */
#defineEFUSE_TESTREG_EFUSE_TEST/* E-Fuse Test. */
#define MSR (REG_CR+ 2) /* Media Status register */I guess the idea was to standardize those macros rather using the
REG_xxx_yyyones. In fact, when searching for a missusage of that, there is none, only a duplicated redefinition ofEFUSE_CTRLatdrivers/staging/rtl8723bs/core/rtw_efuse.c.If my interpretation is correct about that comment, I
m think we can remove the note/TODO since its very old. Also, I`m removing the duplicated define, since thehal_com_reg.his already included atrtw_efuse.c.Tks and regards.
--- drivers/staging/rtl8723bs/core/rtw_efuse.c | 3 --- drivers/staging/rtl8723bs/include/hal_com_reg.h | 4 ---- 2 files changed, 7 deletions(-)drivers/staging/rtl8723bs/core/rtw_efuse.c +0
-3@@ -26,9 +26,6 @@ u8 fakeBTEfuseContent[EFUSE_MAX_BT_BANK][EFUSE_MAX_HW_SIZE];u8 fakeBTEfuseInitMap[EFUSE_BT_MAX_MAP_LEN ] = {0 };u8 fakeBTEfuseModifiedMap[EFUSE_BT_MAX_MAP_LEN ] = {0 }; -#define REG_EFUSE_CTRL 0x0030 -#define EFUSE_CTRL REG_EFUSE_CTRL/* E-Fuse Control. */ -static bool Efuse_Read1ByteFromFakeContent (u16 Offset,u8 *Value) {drivers/staging/rtl8723bs/include/hal_com_reg.h +0
-4@@ -189,10 +189,6 @@/* Redifine 8192C register definition for compatibility */ /* */ /* */ - -/* TODO: use these definition when using REG_xxx naming rule. */ -/* NOTE: DO NOT Remove these definition. Use later. */ -#define EFUSE_CTRL REG_EFUSE_CTRL/* E-Fuse Control. */ #define EFUSE_TEST REG_EFUSE_TEST/* E-Fuse Test. */ #define MSR (REG_CR + 2)/* Media Status register */ Signature · 1 line
2.48.1
Does not apply to my tree at all :(
Can you rebase against the next linux-next release and resend?
thanks,
greg k-h