drivers/staging/rtl8723bs/hal/hal_com_phycfg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
The function definition for phy_StoreTxPowerByRateBase() did not
follow the kernel coding style.
Move the closing parenthesis to the same line as the argument to fix
the style issue reported by checkpatch.pl.
Signed-off-by: Akiyoshi Kurita <weibu@redadmin.org>
---
drivers/staging/rtl8723bs/hal/hal_com_phycfg.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
index d5649e7d8f99..f137ec747ab3 100644
--- a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
+++ b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
@@ -60,9 +60,7 @@ phy_SetTxPowerByRateBase(struct adapter *Adapter, u8 RfPath,
}
static void
-phy_StoreTxPowerByRateBase(
-struct adapter *padapter
- )
+phy_StoreTxPowerByRateBase(struct adapter *padapter)
{
u8 path, base;
--
2.47.3
On Mon, Sep 08, 2025 at 11:46:41PM +0900, Akiyoshi Kurita wrote: > The function definition for phy_StoreTxPowerByRateBase() did not > follow the kernel coding style. > > Move the closing parenthesis to the same line as the argument to fix > the style issue reported by checkpatch.pl. > > Signed-off-by: Akiyoshi Kurita <weibu@redadmin.org> > --- > drivers/staging/rtl8723bs/hal/hal_com_phycfg.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c > index d5649e7d8f99..f137ec747ab3 100644 > --- a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c > +++ b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c > @@ -60,9 +60,7 @@ phy_SetTxPowerByRateBase(struct adapter *Adapter, u8 RfPath, > } > > static void > -phy_StoreTxPowerByRateBase( > -struct adapter *padapter > - ) > +phy_StoreTxPowerByRateBase(struct adapter *padapter) This really should end up being: static void phy_StoreTxPowerByRateBase(struct adapter *padapter) right? thanks, greg k-h
Make the function definition of phy_StoreTxPowerByRateBase() follow the
kernel coding style by placing the return type and function name on a
single line.
No functional change.
Signed-off-by: Akiyoshi Kurita <weibu@redadmin.org>
---
v2:
- Keep return type and function name on the same line (per review).
- Drop stray blank line before the opening brace.
---
drivers/staging/rtl8723bs/hal/hal_com_phycfg.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
index d5649e7d8f99..cd76e26e868f 100644
--- a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
+++ b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c
@@ -59,10 +59,7 @@ phy_SetTxPowerByRateBase(struct adapter *Adapter, u8 RfPath,
}
}
-static void
-phy_StoreTxPowerByRateBase(
-struct adapter *padapter
- )
+static void phy_StoreTxPowerByRateBase(struct adapter *padapter)
{
u8 path, base;
--
2.47.3
On Mon, Sep 08, 2025 at 11:46:41PM +0900, Akiyoshi Kurita wrote: > The function definition for phy_StoreTxPowerByRateBase() did not > follow the kernel coding style. > > Move the closing parenthesis to the same line as the argument to fix > the style issue reported by checkpatch.pl. > > Signed-off-by: Akiyoshi Kurita <weibu@redadmin.org> > --- There are so many other functions which are declared in exactly this same format. Fix the others like this in the file as well in one patch. regards, dan carpenter
© 2016 - 2026 Red Hat, Inc.