All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: remove CamelCase variable pbDriverStopped
@ 2026-10-03 11:58 Luca Hernandez
  2026-10-03 12:35 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Luca Hernandez @ 2026-10-03 11:58 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging, Luca Hernandez

Rename the pointer variable pbDriverStopped to driver_stopped to eliminate
the use of CamelCase and Hungarian notation prefixes. This aligns the
driver's HAL code with standard Linux kernel coding style guidelines and
resolves checkpatch.pl audit warnings.

Signed-off-by: Luca Hernandez <lucay202@gmail.com>
---
 drivers/staging/rtl8723bs/hal/odm.c | 2 +-
 drivers/staging/rtl8723bs/hal/odm.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/hal/odm.c b/drivers/staging/rtl8723bs/hal/odm.c
index f3989fa33d9f..505c21bd1847 100644
--- a/drivers/staging/rtl8723bs/hal/odm.c
+++ b/drivers/staging/rtl8723bs/hal/odm.c
@@ -773,7 +773,7 @@ void ODM_CmnInfoHook(struct dm_odm_t *pDM_Odm, enum odm_cmninfo_e CmnInfo, void
 		break;
 
 	case ODM_CMNINFO_DRV_STOP:
-		pDM_Odm->pbDriverStopped =  pValue;
+		pDM_Odm->driver_stopped =  pValue;
 		break;
 
 	case ODM_CMNINFO_PNP_IN:
diff --git a/drivers/staging/rtl8723bs/hal/odm.h b/drivers/staging/rtl8723bs/hal/odm.h
index 3532f0d79363..47034ca1af26 100644
--- a/drivers/staging/rtl8723bs/hal/odm.h
+++ b/drivers/staging/rtl8723bs/hal/odm.h
@@ -848,7 +848,7 @@ struct dm_odm_t { /* DM_Out_Source_Dynamic_Mechanism_Structure */
 
 	/* common */
 
-	bool *pbDriverStopped;
+	bool *driver_stopped;
 	bool *pbDriverIsGoingToPnpSetPowerSleep;
 	bool *pinit_adpt_in_progress;
 
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] staging: rtl8723bs: remove CamelCase variable pbDriverStopped
  2026-10-03 11:58 [PATCH] staging: rtl8723bs: remove CamelCase variable pbDriverStopped Luca Hernandez
@ 2026-10-03 12:35 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2026-10-03 12:35 UTC (permalink / raw)
  To: Luca Hernandez; +Cc: linux-staging

On Sat, Oct 03, 2026 at 12:58:19PM +0100, Luca Hernandez wrote:
> Rename the pointer variable pbDriverStopped to driver_stopped to eliminate
> the use of CamelCase and Hungarian notation prefixes. This aligns the
> driver's HAL code with standard Linux kernel coding style guidelines and
> resolves checkpatch.pl audit warnings.
> 
> Signed-off-by: Luca Hernandez <lucay202@gmail.com>
> ---
>  drivers/staging/rtl8723bs/hal/odm.c | 2 +-
>  drivers/staging/rtl8723bs/hal/odm.h | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/hal/odm.c b/drivers/staging/rtl8723bs/hal/odm.c
> index f3989fa33d9f..505c21bd1847 100644
> --- a/drivers/staging/rtl8723bs/hal/odm.c
> +++ b/drivers/staging/rtl8723bs/hal/odm.c
> @@ -773,7 +773,7 @@ void ODM_CmnInfoHook(struct dm_odm_t *pDM_Odm, enum odm_cmninfo_e CmnInfo, void
>  		break;
>  
>  	case ODM_CMNINFO_DRV_STOP:
> -		pDM_Odm->pbDriverStopped =  pValue;
> +		pDM_Odm->driver_stopped =  pValue;

So this is only set but never done anything with at all?  Why is this
needed?  Why not just remove this field entirely?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-03 12:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-03 11:58 [PATCH] staging: rtl8723bs: remove CamelCase variable pbDriverStopped Luca Hernandez
2026-10-03 12:35 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.