staging: rtl8723bs: fix CamelCase warnings for bResult and Address in rtw_efuse.c
PATCH 1/1 staging: rtl8723bs: fix CamelCase warnings for bResult and Address in rtw_efuse.c
Signed-off-by Bruce Ou <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_efuse.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8723bs/core/rtw_efuse.c +8 -8
@@ -44,7 +44,7 @@ Efuse_CalculateWordCnts(u8 word_en)u8 EFUSE_Read1Byte (struct adapter *Adapter, -u16 Address) +u16 address) {u8 byte_temp = {0x00 };u8 temp = {0x00 };
@@ -53,13 +53,13 @@ u16 Address)Hal_GetEfuseDefinition (Adapter,EFUSE_WIFI ,TYPE_EFUSE_REAL_CONTENT_LEN , &content_len); -if (Address < content_len) {/* E-fuse 512Byte */ +if (address < content_len) {/* E-fuse 512Byte */ /* Write E-fuse Register address bit0~7 */ - temp = Address &0xFF ; + temp = address &0xFF ;rtw_write8 (Adapter,EFUSE_CTRL +1 , temp); byte_temp =rtw_read8 (Adapter,EFUSE_CTRL +2 );/* Write E-fuse Register address bit8~9 */ - temp = ((Address >>8 ) &0x03 ) | (byte_temp &0xFC ); + temp = ((address >>8 ) &0x03 ) | (byte_temp &0xFC );rtw_write8 (Adapter,EFUSE_CTRL +2 , temp);/* Write 0x30[31]= 0 */
@@ -89,7 +89,7 @@ u16 addr, u8 *data) {u32 tmpidx =0 ; -u8 bResult; +u8 result;u8 readbyte;/* <20130121, Kordan> For SMIC EFUSE specificatoin. */
@@ -114,13 +114,13 @@ u8 *data) }if (tmpidx <100 ) { *data =rtw_read8 (padapter,EFUSE_CTRL ); - bResult = true; + result = true; }else { *data =0xff ; - bResult = false; + result = false; } -return bResult; +return result; }/*-----------------------------------------------------------------------------
Signature · 1 line
2.43.0
Greg Kroah-Hartman
maintainerQuoted 36 lines · Bruce Ou
Signed-off-by Bruce Ou <[email protected]>--- drivers/staging/rtl8723bs/core/rtw_efuse.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)drivers/staging/rtl8723bs/core/rtw_efuse.c +4
-4@@ -44,7 +44,7 @@ Efuse_CalculateWordCnts(u8 word_en)u8 EFUSE_Read1Byte (struct adapter *Adapter, -u16 Address) +u16 address) {u8 byte_temp = {0x00 };u8 temp = {0x00 };@@ -53,13 +53,13 @@ u16 Address)Hal_GetEfuseDefinition (Adapter,EFUSE_WIFI ,TYPE_EFUSE_REAL_CONTENT_LEN , &content_len); -if (Address < content_len) {/* E-fuse 512Byte */ +if (address < content_len) {/* E-fuse 512Byte */ /* Write E-fuse Register address bit0~7 */ - temp = Address &0xFF ; + temp = address &0xFF ;rtw_write8 (Adapter,EFUSE_CTRL +1 , temp); byte_temp =rtw_read8 (Adapter,EFUSE_CTRL +2 );/* Write E-fuse Register address bit8~9 */ - temp = ((Address >>8 ) &0x03 ) | (byte_temp &0xFC ); + temp = ((address >>8 ) &0x03 ) | (byte_temp &0xFC );rtw_write8 (Adapter,EFUSE_CTRL +2 , temp);/* Write 0x30[31]= 0 */
drivers/staging/rtl8723bs/core/rtw_efuse.c u16 addr, · line 92
Quoted 5 lines
drivers/staging/rtl8723bs/core/rtw_efuse.c +1
-1@@ -89,7 +89,7 @@ u16 addr, u8 *data) {u32 tmpidx =0 ; -u8 bResult; +u8 result;
This should now be a boolean, right?
thanks,
greg k-h