Skip to contentSkip to conversation

staging: rtl8723bs: reformat rtw_efuse_read_1_byte() signature

PATCH In review Moksh Panicker 2 participants 5 messages May 15 1 message not in the archive Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 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 803a608b74fa..987d05816c5c 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/4 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 987d05816c5c..2be74f2d4ac8 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/4 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 2be74f2d4ac8..ef0cec40d388 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
maintainer
#3 lore raw
In reply to Moksh Panicker
Quoted 28 lines · 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 | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/staging/rtl8723bs/core/rtw_efuse.c +1 -4
index 803a608b74fa..987d05816c5c 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

I only see 3 patches in this series, and it was sent twice?

confused,

greg k-h

A message that is not in the archive (sent off-list or not yet received): CAK0z5OmSunDp2xVhwEcy+gYz7KCXPihSV3R4zLn-ia39Lbtirg@mail.gmail.com

maintainer
#5 lore raw
Quoted 9 lines · Moksh Panicker

Apologies for the confusion. I sent a v1 series earlier and then resent as v2, both ended up on the list. The [PATCH 1/4] subject was a mistake on my part; this is actually a 3-patch series with no cover letter. I'll make sure to number them correctly and include a cover letter in future submissions.

Should I resend the series as v3 with the correct numbering ([PATCH 1/3], [PATCH 2/3], [PATCH 3/3]) and a [PATCH 0/3](PATCH 0/3 being the cover letter)

Yes please. Also please don't send html email (the lists reject it) and don't top post :)

thanks,

greg k-h