Skip to contentSkip to conversation

rtl8192e: renamed (1) mixed case variable

PATCH In review Gary Rookard 3 participants 7 messages Sep 25, 2023 – Sep 26, 2023 Staging

lore
Share & tools
lore
#0 lore raw

cover rtl8192e: renamed (1) mixed case variable

Hi!

This patch set of (3) addresses the correction of mixed case useage in (3) driver/staging/rtl8192e files.
1/3) rtllib.h
2/3) rtl819x_HTProc.c
3/3) rtllib_module.c

Variable renamed: HTUpdateDefaultSetting -> ht_update_default_setting

Linux kernel coding style "cleanup", no change in runtime logic, compiles with no errors or warnings.

Signature · 1 line
2.41.0
#1 lore raw

PATCH 1/3 rtl8192e: renamed (1) mixed case variable

Renamed (1) prototype variable that was written in mixed case. HTUpdateDefaultSetting -> ht_update_default_setting

Linux kernel coding style "cleanup".
No change in runtime logic.

---
 drivers/staging/rtl8192e/rtllib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtllib.h +1 -1
index 5517b9df65be..1a3dd4dcad81 100644
@@ -1807,7 +1807,7 @@ int rtllib_wx_get_rts(struct rtllib_device *ieee, struct iw_request_info *info,
 void HTSetConnectBwMode(struct rtllib_device *ieee,
 			enum ht_channel_width bandwidth,
 			enum ht_extchnl_offset Offset);
-void HTUpdateDefaultSetting(struct rtllib_device *ieee);
+void ht_update_default_setting(struct rtllib_device *ieee);
 void HTConstructCapabilityElement(struct rtllib_device *ieee,
 				  u8 *posHTCap, u8 *len,
 				  u8 isEncrypt, bool bAssoc);
Signature · 1 line
2.41.0
maintainer
#2 lore raw
Quoted 28 lines · Gary Rookard

Renamed (1) prototype variable that was written in mixed case. HTUpdateDefaultSetting -> ht_update_default_setting

Linux kernel coding style "cleanup".
No change in runtime logic.

---
 drivers/staging/rtl8192e/rtllib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtllib.h +1 -1
index 5517b9df65be..1a3dd4dcad81 100644
@@ -1807,7 +1807,7 @@ int rtllib_wx_get_rts(struct rtllib_device *ieee, struct iw_request_info *info,
 void HTSetConnectBwMode(struct rtllib_device *ieee,
 			enum ht_channel_width bandwidth,
 			enum ht_extchnl_offset Offset);
-void HTUpdateDefaultSetting(struct rtllib_device *ieee);
+void ht_update_default_setting(struct rtllib_device *ieee);
 void HTConstructCapabilityElement(struct rtllib_device *ieee,
 				  u8 *posHTCap, u8 *len,
 				  u8 isEncrypt, bool bAssoc);
Signature · 1 line
2.41.0

You just broke the build?

Also, you sent 3 patches that do different things, yet have identical subject lines, that's obviously not correct.

Please fix up and resend a v2 series.

thanks,

greg k-h

#3 lore raw

Okay, will do.

Quoted 40 lines · Greg KH
Quoted 28 lines · Gary Rookard

Renamed (1) prototype variable that was written in mixed case. HTUpdateDefaultSetting -> ht_update_default_setting

Linux kernel coding style "cleanup".
No change in runtime logic.

---
 drivers/staging/rtl8192e/rtllib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtllib.h +1 -1
index 5517b9df65be..1a3dd4dcad81 100644
@@ -1807,7 +1807,7 @@ int rtllib_wx_get_rts(struct rtllib_device *ieee, struct iw_request_info *info,
 void HTSetConnectBwMode(struct rtllib_device *ieee,
 			enum ht_channel_width bandwidth,
 			enum ht_extchnl_offset Offset);
-void HTUpdateDefaultSetting(struct rtllib_device *ieee);
+void ht_update_default_setting(struct rtllib_device *ieee);
 void HTConstructCapabilityElement(struct rtllib_device *ieee,
 				  u8 *posHTCap, u8 *len,
 				  u8 isEncrypt, bool bAssoc);
Signature · 1 line
2.41.0

You just broke the build?

Also, you sent 3 patches that do different things, yet have identical subject lines, that's obviously not correct.

Please fix up and resend a v2 series.

thanks,

greg k-h

#4 lore raw

PATCH 2/3 rtl8192e: renamed (1) mixed case variable

In reply to Gary Rookard

Renamed (1) function variable that was written in mixed case HTUpdateDefaultSetting -> ht_update_default_setting

Linux kernel coding style "cleanup".
No change in runtime logic.

---
 drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +1 -1
index f19feea46158..630acfaf6d55 100644
@@ -67,7 +67,7 @@ static u8 CISCO_BROADCOM[3] = {0x00, 0x17, 0x94};
 
 static u8 LINKSYS_MARVELL_4400N[3] = {0x00, 0x14, 0xa4};
 
-void HTUpdateDefaultSetting(struct rtllib_device *ieee)
+void ht_update_default_setting(struct rtllib_device *ieee)
 {
 	struct rt_hi_throughput *ht_info = ieee->ht_info;
 
Signature · 1 line
2.41.0
#5 lore raw

PATCH 3/3 rtl8192e: renamed (1) mixed case variable

In reply to Gary Rookard

Renamed (1) referenced variable that was written in mixed case. HTUpdateDefaultSetting -> ht_update_default_setting

Linux kernel coding style "cleanup".
No change in runtime logic.

---
 drivers/staging/rtl8192e/rtllib_module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtllib_module.c +1 -1
index 2416e0c60255..fc0cc4657fee 100644
@@ -126,7 +126,7 @@ struct net_device *alloc_rtllib(int sizeof_priv)
 	if (!ieee->ht_info)
 		goto free_softmac;
 
-	HTUpdateDefaultSetting(ieee);
+	ht_update_default_setting(ieee);
 	HTInitializeHTInfo(ieee);
 	TSInitialize(ieee);
 	for (i = 0; i < IEEE_IBSS_MAC_HASH_SIZE; i++)
Signature · 1 line
2.41.0
#6 lore raw
In reply to Gary Rookard
Quoted 8 lines · Gary Rookard

Hi!

This patch set of (3) addresses the correction of mixed case useage in (3) driver/staging/rtl8192e files.
1/3) rtllib.h
2/3) rtl819x_HTProc.c
3/3) rtllib_module.c

Quoted 4 lines

Variable renamed: HTUpdateDefaultSetting -> ht_update_default_setting

Linux kernel coding style "cleanup", no change in runtime logic, compiles with no errors or warnings.

Hi Gary,

you need one patch to change all three usages of the variable. You need to be able to compile the driver after each patch.

For the next patch you send to the mailing list you need a version history of your patch.

If you like you can send the patch first only to me. In case of questions feel free to ask.

Bye Philipp