Re: [PATCH] staging: rtl8723bs: include: Fix coding style errors

2020-07-26 Thread Aditya Jain



On 26/07/20 11:33 pm, Larry Finger wrote:

On 7/26/20 3:40 AM, Aditya Jain wrote:
On Sun, Jul 26, 2020 at 1:56 PM Greg KH  
wrote:


On Sun, Jul 26, 2020 at 01:32:15PM +0530, Aditya Jain wrote:

Fixing ERROR: "foo *  bar" should be "foo *bar" in hal_phy_cfg.h
as reported by checkpatch.pl

Signed-off-by: Aditya Jain 
---
  .../staging/rtl8723bs/include/hal_phy_cfg.h    | 18 
+-

  1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h 
b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h

index 419ddb0733aa..fd5f377bad4f 100644
--- a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
+++ b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
@@ -42,7 +42,7 @@ u32 Data

  u32
  PHY_QueryRFReg_8723B(
-struct adapter * Adapter,
+struct adapter   *Adapter,
  u8   eRFPath,
  u32  RegAddr,
  u32  BitMask


Ick, these are all horrid.  How about just making these all on a single
line like most functions have them instead of this one cleanup?

Same for the other changes you made in this file.

thanks,

greg k-h


Agreed. I'll clean it up.


While you are at it, drop the "include;" from the subject. For 
staging, the usual subject is of the form "staging: driver: thing 
being done". In your case "staging: rtl8723bs: Fix coding style 
errors". The directory of the files are not relevant.
Ok, I'll take care of this and update the subject in the next version of 
the Patch series.


I am also not in favor of the large white space between the variable 
type and the name, but that is probably the subject of separate patches.



I think, the v3 patch series resolves this.

Larry



Regards,

Aditya Jain



Re: [PATCH] staging: rtl8723bs: include: Fix coding style errors

2020-07-26 Thread Larry Finger

On 7/26/20 3:40 AM, Aditya Jain wrote:

On Sun, Jul 26, 2020 at 1:56 PM Greg KH  wrote:


On Sun, Jul 26, 2020 at 01:32:15PM +0530, Aditya Jain wrote:

Fixing ERROR: "foo *  bar" should be "foo *bar" in hal_phy_cfg.h
as reported by checkpatch.pl

Signed-off-by: Aditya Jain 
---
  .../staging/rtl8723bs/include/hal_phy_cfg.h| 18 +-
  1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h 
b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
index 419ddb0733aa..fd5f377bad4f 100644
--- a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
+++ b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
@@ -42,7 +42,7 @@ u32 Data

  u32
  PHY_QueryRFReg_8723B(
-struct adapter * Adapter,
+struct adapter   *Adapter,
  u8   eRFPath,
  u32  RegAddr,
  u32  BitMask


Ick, these are all horrid.  How about just making these all on a single
line like most functions have them instead of this one cleanup?

Same for the other changes you made in this file.

thanks,

greg k-h


Agreed. I'll clean it up.


While you are at it, drop the "include;" from the subject. For staging, the 
usual subject is of the form "staging: driver: thing being done". In your case 
"staging: rtl8723bs: Fix coding style errors". The directory of the files are 
not relevant.


I am also not in favor of the large white space between the variable type and 
the name, but that is probably the subject of separate patches.


Larry



Re: [PATCH] staging: rtl8723bs: include: Fix coding style errors

2020-07-26 Thread Aditya Jain
On Sun, Jul 26, 2020 at 1:56 PM Greg KH  wrote:
>
> On Sun, Jul 26, 2020 at 01:32:15PM +0530, Aditya Jain wrote:
> > Fixing ERROR: "foo *  bar" should be "foo *bar" in hal_phy_cfg.h
> > as reported by checkpatch.pl
> >
> > Signed-off-by: Aditya Jain 
> > ---
> >  .../staging/rtl8723bs/include/hal_phy_cfg.h| 18 +-
> >  1 file changed, 9 insertions(+), 9 deletions(-)
> >
> > diff --git a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h 
> > b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
> > index 419ddb0733aa..fd5f377bad4f 100644
> > --- a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
> > +++ b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
> > @@ -42,7 +42,7 @@ u32 Data
> >
> >  u32
> >  PHY_QueryRFReg_8723B(
> > -struct adapter * Adapter,
> > +struct adapter   *Adapter,
> >  u8   eRFPath,
> >  u32  RegAddr,
> >  u32  BitMask
>
> Ick, these are all horrid.  How about just making these all on a single
> line like most functions have them instead of this one cleanup?
>
> Same for the other changes you made in this file.
>
> thanks,
>
> greg k-h

Agreed. I'll clean it up.

Regards,
Aditya Jain


Re: [PATCH] staging: rtl8723bs: include: Fix coding style errors

2020-07-26 Thread Greg KH
On Sun, Jul 26, 2020 at 01:32:15PM +0530, Aditya Jain wrote:
> Fixing ERROR: "foo *  bar" should be "foo *bar" in hal_phy_cfg.h
> as reported by checkpatch.pl
> 
> Signed-off-by: Aditya Jain 
> ---
>  .../staging/rtl8723bs/include/hal_phy_cfg.h| 18 +-
>  1 file changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h 
> b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
> index 419ddb0733aa..fd5f377bad4f 100644
> --- a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
> +++ b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
> @@ -42,7 +42,7 @@ u32 Data
>  
>  u32
>  PHY_QueryRFReg_8723B(
> -struct adapter * Adapter,
> +struct adapter   *Adapter,
>  u8   eRFPath,
>  u32  RegAddr,
>  u32  BitMask

Ick, these are all horrid.  How about just making these all on a single
line like most functions have them instead of this one cleanup?

Same for the other changes you made in this file.

thanks,

greg k-h


[PATCH] staging: rtl8723bs: include: Fix coding style errors

2020-07-26 Thread Aditya Jain
Fixing ERROR: "foo *bar" should be "foo *bar" in hal_phy_cfg.h
as reported by checkpatch.pl

Signed-off-by: Aditya Jain 
---
 .../staging/rtl8723bs/include/hal_phy_cfg.h| 18 +-
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h 
b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
index 419ddb0733aa..fd5f377bad4f 100644
--- a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
+++ b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h
@@ -42,7 +42,7 @@ u32   Data
 
 u32
 PHY_QueryRFReg_8723B(
-struct adapter *   Adapter,
+struct adapter *Adapter,
 u8 eRFPath,
 u32RegAddr,
 u32BitMask
@@ -50,7 +50,7 @@ u32   BitMask
 
 void
 PHY_SetRFReg_8723B(
-struct adapter *   Adapter,
+struct adapter *Adapter,
 u8 eRFPath,
 u32RegAddr,
 u32BitMask,
@@ -66,7 +66,7 @@ s32 PHY_MACConfig8723B(struct adapter *padapter);
 
 void
 PHY_SetTxPowerIndex(
-struct adapter *   Adapter,
+struct adapter *Adapter,
 u32PowerIndex,
 u8 RFPath,
 u8 Rate
@@ -74,7 +74,7 @@ u8Rate
 
 u8
 PHY_GetTxPowerIndex(
-struct adapter *   padapter,
+struct adapter *padapter,
 u8 RFPath,
 u8 Rate,
 enum CHANNEL_WIDTH BandWidth,
@@ -83,19 +83,19 @@ u8  Channel
 
 void
 PHY_GetTxPowerLevel8723B(
-struct adapter *   Adapter,
-   s32*powerlevel
+struct adapter *Adapter,
+   s32 *powerlevel
);
 
 void
 PHY_SetTxPowerLevel8723B(
-struct adapter *   Adapter,
+struct adapter *Adapter,
 u8 channel
);
 
 void
 PHY_SetBWMode8723B(
-struct adapter *   Adapter,
+struct adapter *Adapter,
 enum CHANNEL_WIDTH Bandwidth,  /*  20M or 40M */
 unsigned char  Offset  /*  Upper, Lower, or Don't care 
*/
 );
@@ -108,7 +108,7 @@ u8 channel
 
 void
 PHY_SetSwChnlBWMode8723B(
-struct adapter *   Adapter,
+struct adapter *Adapter,
 u8 channel,
 enum CHANNEL_WIDTH Bandwidth,
 u8 Offset40,
-- 
2.25.1