Skip to contentSkip to conversation

staging: rtl8723bs: fix lines over 100 characters in hal_intf.c

PATCH In review Thomas Prud'homme 3 participants 3 messages Sep 9 – Oct 1 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: fix lines over 100 characters in hal_intf.c

Wrap the parameter list of rtw_hal_set_odm_var() across two lines, and move the comment on the rtl8723b_HalDmWatchDog_in_LPS() call above the call instead of trailing it, so both lines fit within the checkpatch.pl line length limit. No functional change.

---
 drivers/staging/rtl8723bs/hal/hal_intf.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/staging/rtl8723bs/hal/hal_intf.c +4 -2
index 2caade1a8..1096f5441 100644
@@ -89,7 +89,8 @@ u8 rtw_hal_get_def_var(struct adapter *padapter, enum hal_def_variable eVariable
 	return GetHalDefVar8723BSDIO(padapter, eVariable, pValue);
 }
 
-void rtw_hal_set_odm_var(struct adapter *padapter, enum hal_odm_variable eVariable, void *pValue1, bool bSet)
+void rtw_hal_set_odm_var(struct adapter *padapter,
+			 enum hal_odm_variable eVariable, void *pValue1, bool bSet)
 {
 	SetHalODMVar(padapter, eVariable, pValue1, bSet);
 }
@@ -216,7 +217,8 @@ void rtw_hal_dm_watchdog(struct adapter *padapter)
 void rtw_hal_dm_watchdog_in_lps(struct adapter *padapter)
 {
 	if (adapter_to_pwrctl(padapter)->fw_current_in_ps_mode)
-		rtl8723b_HalDmWatchDog_in_LPS(padapter); /* this function caller is in interrupt context */
+		/* this function caller is in interrupt context */
+		rtl8723b_HalDmWatchDog_in_LPS(padapter);
 }
 
 void beacon_timing_control(struct adapter *padapter)
Signature · 1 line
2.55.0.windows.3
#1 lore raw
Quoted 25 lines · Thomas Prud'homme

Wrap the parameter list of rtw_hal_set_odm_var() across two lines, and move the comment on the rtl8723b_HalDmWatchDog_in_LPS() call above the call instead of trailing it, so both lines fit within the checkpatch.pl line length limit. No functional change.

---
 drivers/staging/rtl8723bs/hal/hal_intf.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/staging/rtl8723bs/hal/hal_intf.c +2 -1
index 2caade1a8..1096f5441 100644
@@ -89,7 +89,8 @@ u8 rtw_hal_get_def_var(struct adapter *padapter, enum hal_def_variable eVariable
 	return GetHalDefVar8723BSDIO(padapter, eVariable, pValue);
 }
 
-void rtw_hal_set_odm_var(struct adapter *padapter, enum hal_odm_variable eVariable, void *pValue1, bool bSet)
+void rtw_hal_set_odm_var(struct adapter *padapter,
+			 enum hal_odm_variable eVariable, void *pValue1, bool bSet)
 {
 	SetHalODMVar(padapter, eVariable, pValue1, bSet);
 }

drivers/staging/rtl8723bs/hal/hal_intf.c void rtw_hal_dm_watchdog(struct adapter *padapter) · line 221

Quoted 6 lines
drivers/staging/rtl8723bs/hal/hal_intf.c +2 -1
@@ -216,7 +217,8 @@ void rtw_hal_dm_watchdog(struct adapter *padapter)
 void rtw_hal_dm_watchdog_in_lps(struct adapter *padapter)
 {
 	if (adapter_to_pwrctl(padapter)->fw_current_in_ps_mode)
-		rtl8723b_HalDmWatchDog_in_LPS(padapter); /* this function caller is in interrupt context */
+		/* this function caller is in interrupt context */
+		rtl8723b_HalDmWatchDog_in_LPS(padapter);

Doesn't this break a different checkpatch issue?

Be careful of multi-line statements like this...

thanks,

greg k-h

#2 lore raw
Quoted 19 lines · Greg Kroah-Hartman
Quoted 18 lines · Thomas Prud'homme

Wrap the parameter list of rtw_hal_set_odm_var() across two lines, and move the comment on the rtl8723b_HalDmWatchDog_in_LPS() call above the call instead of trailing it, so both lines fit within the checkpatch.pl line length limit. No functional change.

---
 drivers/staging/rtl8723bs/hal/hal_intf.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/staging/rtl8723bs/hal/hal_intf.c +0 -0
index 2caade1a8..1096f5441 100644
@@ -89,7 +89,8 @@ u8 rtw_hal_get_def_var(struct adapter *padapter, enum hal_def_variable eVariable
 	return GetHalDefVar8723BSDIO(padapter, eVariable, pValue);
 }
 
Quoted 16 lines

drivers/staging/rtl8723bs/hal/hal_intf.c void rtw_hal_dm_watchdog(struct adapter *padapter) · line 221

Quoted 13 lines
drivers/staging/rtl8723bs/hal/hal_intf.c +4 -2
-void rtw_hal_set_odm_var(struct adapter *padapter, enum hal_odm_variable eVariable, void *pValue1, bool bSet)
+void rtw_hal_set_odm_var(struct adapter *padapter,
+			 enum hal_odm_variable eVariable, void *pValue1, bool bSet)
 {
 	SetHalODMVar(padapter, eVariable, pValue1, bSet);
 }
@@ -216,7 +217,8 @@ void rtw_hal_dm_watchdog(struct adapter *padapter)
 void rtw_hal_dm_watchdog_in_lps(struct adapter *padapter)
 {
 	if (adapter_to_pwrctl(padapter)->fw_current_in_ps_mode)
-		rtl8723b_HalDmWatchDog_in_LPS(padapter); /* this function caller is in interrupt context */
+		/* this function caller is in interrupt context */
+		rtl8723b_HalDmWatchDog_in_LPS(padapter);

Doesn't this break a different checkpatch issue?

No, it doesn't. But, of course, yes, multi-line if statements should get curly braces. It's an unwritten rule.

Also I feel like loop macros should get curly braces as well but that might just be me...

regards,
dan carpenter