Skip to contentSkip to conversation

staging: rtl8723bs: reformat rtw_efuse_read_1_byte() signature

PATCH New Moksh Panicker 1 participant 3 messages May 10 Staging

lore
Share & tools
lore
#0 lore raw

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.

---
 drivers/staging/rtl8723bs/core/rtw_efuse.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/staging/rtl8723bs/core/rtw_efuse.c +1 -4
index a7a636449813..09a349c81d1e 100644
@@ -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
#1 lore raw

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.

---
 drivers/staging/rtl8723bs/core/rtw_efuse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/core/rtw_efuse.c +1 -1
index 09a349c81d1e..23e736aaf8cf 100644
@@ -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
#2 lore raw

PATCH 3/3 staging: rtl8723bs: reformat rtw_efuse_one_byte_read() signature

In reply to Moksh Panicker

Reformat multi-line function signature to a single line to fix line length and coding style warnings from checkpatch.pl.

---
 drivers/staging/rtl8723bs/core/rtw_efuse.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/staging/rtl8723bs/core/rtw_efuse.c +1 -5
index 23e736aaf8cf..034822be53e8 100644
@@ -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