staging: rtl8723bs: reformat rtw_efuse_read_1_byte() signature
PATCH 1/3 staging: rtl8723bs: reformat rtw_efuse_read_1_byte() signature
Reformat multi-line function signature to a single line to fix line length and coding style warnings from checkpatch.pl.
Signed-off-by Moksh Panicker <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_efuse.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/staging/rtl8723bs/core/rtw_efuse.c +1 -4
@@ -41,10 +41,7 @@ rtw_efuse_calculate_word_counts(u8 word_en)* 09/23/2008 MHC Copy from WMAC. * */ -u8 -rtw_efuse_read_1_byte ( -struct adapter *Adapter, -u16 Address) +u8 rtw_efuse_read_1_byte (struct adapter *Adapter,u16 Address) {u8 Bytetemp = {0x00 };u8 temp = {0x00 };
Signature · 1 line
2.34.1
PATCH 2/3 staging: rtl8723bs: add braces to else clause in rtw_efuse.c
Add missing braces to the else clause to satisfy the coding style requirement that both arms of an if/else statement use braces.
Signed-off-by Moksh Panicker <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_efuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/core/rtw_efuse.c +1 -1
@@ -73,7 +73,7 @@ u8 rtw_efuse_read_1_byte(struct adapter *Adapter, u16 Address)break ; }return rtw_read8 (Adapter,EFUSE_CTRL ); - }else + }else {return 0xFF ; }/* rtw_efuse_read_1_byte */
Signature · 1 line
2.34.1
PATCH 3/3 staging: rtl8723bs: reformat rtw_efuse_one_byte_read() signature
In reply to Moksh PanickerReformat multi-line function signature to a single line to fix line length and coding style warnings from checkpatch.pl.
Signed-off-by Moksh Panicker <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_efuse.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/staging/rtl8723bs/core/rtw_efuse.c +1 -5
@@ -79,11 +79,7 @@ u8 rtw_efuse_read_1_byte(struct adapter *Adapter, u16 Address) }/* rtw_efuse_read_1_byte */ /* 11/16/2008 MH Read one byte from real Efuse. */ -u8 -rtw_efuse_one_byte_read ( -struct adapter *padapter, -u16 addr, -u8 *data) +u8 rtw_efuse_one_byte_read (struct adapter *padapter,u16 addr,u8 *data) {u32 tmpidx =0 ;u8 bResult;
Signature · 1 line
2.34.1