* [PATCH v5 0/3] staging: rtl8723bs: efuse cleanup and brace fix
@ 2026-05-18 18:06 Moksh Panicker
2026-05-18 18:06 ` [PATCH v5 1/3] staging: rtl8723bs: reformat rtw_efuse_read_1_byte() signature Moksh Panicker
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Moksh Panicker @ 2026-05-18 18:06 UTC (permalink / raw)
To: linux-staging; +Cc: gregkh, dan.carpenter, mokshpanicker.7
This series cleans up the rtl8723bs efuse helpers and fixes the
brace/comment spacing issue in rtw_efuse.c. The series has been rechecked,
sent to myself, and compile-tested.
Patch 1 reflows the rtw_efuse_read_1_byte() signature to a single line and
fixes the brace/comment spacing at the end of the function.
Patch 2 adds braces around the else clause in rtw_efuse.c.
Patch 3 reflows the rtw_efuse_one_byte_read() signature to a single line.
Changes from v1 to v2:
1)Reworked the efuse helper signatures to improve
line length and coding style.
2) Split the cleanup into smaller patches.
3) Fixed the missing brace/comment spacing issue in rtw_efuse.c.
Changes from v2 to v3:
1) Addressed review feedback on the efuse cleanup.
2) Kept the brace fix separate from the helper signature cleanup.
3) Reordered the patches to keep the series easier to review.
Changes from v3 to v4:
1) Folded related cleanup into a more coherent series.
2) Adjusted the patch boundaries.
3) Rechecked the series for style and build correctness.
Changes from v4 to v5:
1) Squashed the redundant efuse brace/comment fix into the final series.
2) Kept the series at 3 patches plus cover letter.
3) Re-ran checkpatch and compile-tested the rtl8723bs build.
4) Addressed Dan Carpenter’s concern about the previous
version of the brace fix.
Moksh Panicker (3):
staging: rtl8723bs: reformat rtw_efuse_read_1_byte() signature
staging: rtl8723bs: add braces to else clause in rtw_efuse.c
staging: rtl8723bs: reformat rtw_efuse_one_byte_read() signature
drivers/staging/rtl8723bs/core/rtw_efuse.c | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH v5 1/3] staging: rtl8723bs: reformat rtw_efuse_read_1_byte() signature 2026-05-18 18:06 [PATCH v5 0/3] staging: rtl8723bs: efuse cleanup and brace fix Moksh Panicker @ 2026-05-18 18:06 ` Moksh Panicker 2026-05-18 18:43 ` Dan Carpenter 2026-05-18 18:06 ` [PATCH v5 2/3] staging: rtl8723bs: add braces to else clause in rtw_efuse.c Moksh Panicker 2026-05-18 18:06 ` [PATCH v5 3/3] staging: rtl8723bs: reformat rtw_efuse_one_byte_read() signature Moksh Panicker 2 siblings, 1 reply; 6+ messages in thread From: Moksh Panicker @ 2026-05-18 18:06 UTC (permalink / raw) To: linux-staging; +Cc: gregkh, dan.carpenter, mokshpanicker.7 Reformat multi-line function signature to a single line to fix line length and coding style warnings from checkpatch.pl. Also fix the missing brace/comment spacing in rtw_efuse_read_1_byte(). Signed-off-by: Moksh Panicker <mokshpanicker.7@gmail.com> --- drivers/staging/rtl8723bs/core/rtw_efuse.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/rtl8723bs/core/rtw_efuse.c index 803a608b74fa..afece04c09cd 100644 --- a/drivers/staging/rtl8723bs/core/rtw_efuse.c +++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c @@ -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}; @@ -78,7 +75,7 @@ u16 Address) return rtw_read8(Adapter, EFUSE_CTRL); } else return 0xFF; - + } } /* rtw_efuse_read_1_byte */ /* 11/16/2008 MH Read one byte from real Efuse. */ -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v5 1/3] staging: rtl8723bs: reformat rtw_efuse_read_1_byte() signature 2026-05-18 18:06 ` [PATCH v5 1/3] staging: rtl8723bs: reformat rtw_efuse_read_1_byte() signature Moksh Panicker @ 2026-05-18 18:43 ` Dan Carpenter 2026-05-18 19:11 ` Moksh Panicker 0 siblings, 1 reply; 6+ messages in thread From: Dan Carpenter @ 2026-05-18 18:43 UTC (permalink / raw) To: Moksh Panicker; +Cc: linux-staging, gregkh, dan.carpenter On Mon, May 18, 2026 at 06:06:39PM +0000, Moksh Panicker wrote: > Reformat multi-line function signature to a single line to fix > line length and coding style warnings from checkpatch.pl. > > Also fix the missing brace/comment spacing in rtw_efuse_read_1_byte(). > > Signed-off-by: Moksh Panicker <mokshpanicker.7@gmail.com> > --- > drivers/staging/rtl8723bs/core/rtw_efuse.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/rtl8723bs/core/rtw_efuse.c > index 803a608b74fa..afece04c09cd 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_efuse.c > +++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c > @@ -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}; > @@ -78,7 +75,7 @@ u16 Address) > return rtw_read8(Adapter, EFUSE_CTRL); > } else > return 0xFF; > - > + } No. You're not compile testing your patches. This is the fifth version and you're still breaking the build. Take a break and come back in a few days or something. regards, dan carpenter ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v5 1/3] staging: rtl8723bs: reformat rtw_efuse_read_1_byte() signature 2026-05-18 18:43 ` Dan Carpenter @ 2026-05-18 19:11 ` Moksh Panicker 0 siblings, 0 replies; 6+ messages in thread From: Moksh Panicker @ 2026-05-18 19:11 UTC (permalink / raw) To: Dan Carpenter; +Cc: linux-staging, gregkh, dan.carpenter Thanks for the review. I’ll reproduce the build failure locally, fix the issue, and resend a revised version after proper compile testing. On Mon, May 18, 2026 at 6:43 PM Dan Carpenter <error27@gmail.com> wrote: > > On Mon, May 18, 2026 at 06:06:39PM +0000, Moksh Panicker wrote: > > Reformat multi-line function signature to a single line to fix > > line length and coding style warnings from checkpatch.pl. > > > > Also fix the missing brace/comment spacing in rtw_efuse_read_1_byte(). > > > > Signed-off-by: Moksh Panicker <mokshpanicker.7@gmail.com> > > --- > > drivers/staging/rtl8723bs/core/rtw_efuse.c | 7 ++----- > > 1 file changed, 2 insertions(+), 5 deletions(-) > > > > diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/rtl8723bs/core/rtw_efuse.c > > index 803a608b74fa..afece04c09cd 100644 > > --- a/drivers/staging/rtl8723bs/core/rtw_efuse.c > > +++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c > > @@ -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}; > > @@ -78,7 +75,7 @@ u16 Address) > > return rtw_read8(Adapter, EFUSE_CTRL); > > } else > > return 0xFF; > > - > > + } > > No. You're not compile testing your patches. This is the fifth version > and you're still breaking the build. Take a break and come back in a > few days or something. > > regards, > dan carpenter > ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v5 2/3] staging: rtl8723bs: add braces to else clause in rtw_efuse.c 2026-05-18 18:06 [PATCH v5 0/3] staging: rtl8723bs: efuse cleanup and brace fix Moksh Panicker 2026-05-18 18:06 ` [PATCH v5 1/3] staging: rtl8723bs: reformat rtw_efuse_read_1_byte() signature Moksh Panicker @ 2026-05-18 18:06 ` Moksh Panicker 2026-05-18 18:06 ` [PATCH v5 3/3] staging: rtl8723bs: reformat rtw_efuse_one_byte_read() signature Moksh Panicker 2 siblings, 0 replies; 6+ messages in thread From: Moksh Panicker @ 2026-05-18 18:06 UTC (permalink / raw) To: linux-staging; +Cc: gregkh, dan.carpenter, mokshpanicker.7 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 <mokshpanicker.7@gmail.com> --- drivers/staging/rtl8723bs/core/rtw_efuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/rtl8723bs/core/rtw_efuse.c index afece04c09cd..ab7486020b3f 100644 --- a/drivers/staging/rtl8723bs/core/rtw_efuse.c +++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c @@ -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 */ -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v5 3/3] staging: rtl8723bs: reformat rtw_efuse_one_byte_read() signature 2026-05-18 18:06 [PATCH v5 0/3] staging: rtl8723bs: efuse cleanup and brace fix Moksh Panicker 2026-05-18 18:06 ` [PATCH v5 1/3] staging: rtl8723bs: reformat rtw_efuse_read_1_byte() signature Moksh Panicker 2026-05-18 18:06 ` [PATCH v5 2/3] staging: rtl8723bs: add braces to else clause in rtw_efuse.c Moksh Panicker @ 2026-05-18 18:06 ` Moksh Panicker 2 siblings, 0 replies; 6+ messages in thread From: Moksh Panicker @ 2026-05-18 18:06 UTC (permalink / raw) To: linux-staging; +Cc: gregkh, dan.carpenter, mokshpanicker.7 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 <mokshpanicker.7@gmail.com> --- drivers/staging/rtl8723bs/core/rtw_efuse.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/rtl8723bs/core/rtw_efuse.c index ab7486020b3f..168ecb7a998f 100644 --- a/drivers/staging/rtl8723bs/core/rtw_efuse.c +++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c @@ -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; -- 2.34.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-05-18 19:11 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-05-18 18:06 [PATCH v5 0/3] staging: rtl8723bs: efuse cleanup and brace fix Moksh Panicker 2026-05-18 18:06 ` [PATCH v5 1/3] staging: rtl8723bs: reformat rtw_efuse_read_1_byte() signature Moksh Panicker 2026-05-18 18:43 ` Dan Carpenter 2026-05-18 19:11 ` Moksh Panicker 2026-05-18 18:06 ` [PATCH v5 2/3] staging: rtl8723bs: add braces to else clause in rtw_efuse.c Moksh Panicker 2026-05-18 18:06 ` [PATCH v5 3/3] staging: rtl8723bs: reformat rtw_efuse_one_byte_read() signature Moksh Panicker
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox