staging: rtl8192e: renamed (3) variables
PATCH v4 1/1 staging: rtl8192e: renamed (3) variables
This patch renames the vaiable in staging/rtl8192e HTUpdateDefaultSetting -> ht_update_default_setting in (3) files of rtl8192e:
1) rtl819x_HTProc.c
2) rtllib.h
3) rtllib_module.c
Linux Kernel Coding Style "cleanup", no change in runtime, staging/rtl8192e builds before and after.
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_module.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +1 -1
@@ -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;
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -1785,7 +1785,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);
drivers/staging/rtl8192e/rtllib_module.c +1 -1
@@ -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);rtllib_ts_init (ieee);for (i =0 ; i <IEEE_IBSS_MAC_HASH_SIZE ; i++)
Signature · 1 line
2.41.0
Quoted 10 lines · Gary Rookard
This patch renames the vaiable in staging/rtl8192e HTUpdateDefaultSetting ->
ht_update_default_settingin (3) files of rtl8192e:
1)rtl819x_HTProc.c
2)rtllib.h
3)rtllib_module.c>
Linux Kernel Coding Style "cleanup", no change in runtime, staging/rtl8192e builds before and after.Signed-off-by Gary Rookard <[email protected]>
Hi Gary,
your subject is to general and also wrong as you change just one variable. Please find good examples in the in the kernel log. Or here:
https://lore.kernel.org/linux-staging/[email protected]/T/#u
Omit the file names in the description as this is redundant.
You need a version history for all four versions of your patch. See example:
https://lore.kernel.org/linux-staging/ZQGiqA2GoDp%[email protected]/T/#u
Bye Philipp
Quoted 45 lines
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_module.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)drivers/staging/rtl8192e/rtl819x_HTProc.c +1
-1@@ -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;drivers/staging/rtl8192e/rtllib.h +1
-1@@ -1785,7 +1785,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);drivers/staging/rtl8192e/rtllib_module.c +1
-1@@ -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);rtllib_ts_init (ieee);for (i =0 ; i <IEEE_IBSS_MAC_HASH_SIZE ; i++)
Quoted 18 lines · Philipp Hortmann
Quoted 10 lines · Gary Rookard
This patch renames the vaiable in staging/rtl8192e HTUpdateDefaultSetting ->
ht_update_default_settingin (3) files of rtl8192e:
1)rtl819x_HTProc.c
2)rtllib.h
3)rtllib_module.c>
Linux Kernel Coding Style "cleanup", no change in runtime, staging/rtl8192e builds before and after.Signed-off-by Gary Rookard <[email protected]>Hi Gary,
your subject is to general and also wrong as you change just one variable. Please find good examples in the in the kernel log. Or here:
https://lore.kernel.org/linux-staging/[email protected]/T/#u
Quoted 8 lines
Omit the file names in the description as this is redundant.
You need a version history for all four versions of your patch. See example:
https://lore.kernel.org/linux-staging/ZQGiqA2GoDp%[email protected]/T/#uBye Philipp
Hi Gary,
this is not a variable. It is a function name. To keep the namespace clean it is required to add a rtllib_ in front of the function name.
Bye Philipp
Quoted 44 lines
Quoted 43 lines
---
drivers/staging/rtl8192e/rtl819x_HTProc.c| 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_module.c | 2 +-3 files changed, 3 insertions(+), 3 deletions(-)drivers/staging/rtl8192e/rtl819x_HTProc.c +1
-1@@ -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;drivers/staging/rtl8192e/rtllib.h +1
-1@@ -1785,7 +1785,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);
drivers/staging/rtl8192e/rtllib_module.c +1
-1@@ -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); rtllib_ts_init(ieee); for (i = 0; i < IEEE_IBSS_MAC_HASH_SIZE; i++)
Greg KH
maintainerQuoted 1 line · Gary Rookard
This patch renames the vaiable in staging/rtl8192e
You did not rename a variable.
Quoted 1 line
HTUpdateDefaultSetting ->
ht_update_default_setting
That is only one rename, not 3.
Quoted 7 lines
in (3) files of rtl8192e:
1)rtl819x_HTProc.c
2)rtllib.h
3)rtllib_module.cLinux Kernel Coding Style "cleanup", no change in runtime, staging/rtl8192e builds before and after.
I can not parse these lines :(
Please read the documentation for how to write a good changelog subject and text, that's one of the most important parts of getting a kernel change accepted.
thanks,
greg k-h