staging: rtl8192e: rename variable pHT and (3) other
v2 cover staging: rtl8192e: rename variable pHT and (3) other
Hi,
This patch series renames (4) different variables with the checkpatch coding style issue, Avoid CamelCase.
(resubmittals)
Patch 1/4) rename variable pHT
Patch 2/4) rename variable pCapELE
Patch 3/4) rename variable HTGetHighestMCSRate
Patch 4/4) rename variable HTFilterMCSRate
Gary Rookard (4):
staging: rtl8192e: rename variable pHT
staging: rtl8192e: rename variable pCapELE
staging: rtl8192e: rename variable HTGetHighestMCSRate
staging: rtl8192e: rename variable HTFilterMCSRate
drivers/staging/rtl8192e/rtl819x_HTProc.c | 86 +++++++++++------------ drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_wx.c | 2 +- 3 files changed, 45 insertions(+), 45 deletions(-)
Signature · 1 line
2.41.0
PATCH v2 1/4 staging: rtl8192e: rename variable pHT
Coding style issue, checkpatch Avoid CamelCase,
rename it. pHT -> ht
---
v2: Corrections to make applicable.
v1: Not applicable, conflicting line numbers, code changed.
drivers/staging/rtl8192e/rtl819x_HTProc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +7 -7
@@ -230,17 +230,17 @@ void ht_reset_iot_setting(struct rt_hi_throughput *ht_info)void ht_construct_capability_element (struct rtllib_device *ieee,u8 *pos_ht_cap,u8 *len,u8 is_encrypt,bool assoc) { -struct rt_hi_throughput *pHT = ieee->ht_info; +struct rt_hi_throughput *ht = ieee->ht_info;struct ht_capab_ele *pCapELE =NULL ; -if (!pos_ht_cap || !pHT) { +if (!pos_ht_cap || !ht) {netdev_warn (ieee->dev,"%s(): posHTCap and ht_info are null\n" , __func__);return ; }memset (pos_ht_cap,0 , *len); -if ((assoc) && (pHT->ePeerHTSpecVer ==HT_SPEC_VER_EWC )) { +if ((assoc) && (ht->ePeerHTSpecVer ==HT_SPEC_VER_EWC )) {static const u8 EWC11NHTCap[] = {0x00 ,0x90 ,0x4c ,0x33 };memcpy (pos_ht_cap, EWC11NHTCap,sizeof (EWC11NHTCap));
@@ -289,16 +289,16 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap, pCapELE->ASCap =0 ;if (assoc) { -if (pHT->iot_action &HT_IOT_ACT_DISABLE_MCS15 ) +if (ht->iot_action &HT_IOT_ACT_DISABLE_MCS15 ) pCapELE->MCS[1 ] &=0x7f ; -if (pHT->iot_action &HT_IOT_ACT_DISABLE_MCS14 ) +if (ht->iot_action &HT_IOT_ACT_DISABLE_MCS14 ) pCapELE->MCS[1 ] &=0xbf ; -if (pHT->iot_action &HT_IOT_ACT_DISABLE_ALL_2SS ) +if (ht->iot_action &HT_IOT_ACT_DISABLE_ALL_2SS ) pCapELE->MCS[1 ] &=0x00 ; -if (pHT->iot_action &HT_IOT_ACT_DISABLE_RX_40MHZ_SHORT_GI ) +if (ht->iot_action &HT_IOT_ACT_DISABLE_RX_40MHZ_SHORT_GI ) pCapELE->ShortGI40Mhz =0 ;if (ieee->GetHalfNmodeSupportByAPsHandler (ieee->dev)) {
Signature · 1 line
2.41.0
PATCH v2 2/4 staging: rtl8192e: rename variable pCapELE
In reply to Gary RookardCoding style issue, checkpatch Avoid CamelCase,
rename it. pCapELE -> cap_ele
---
v2: Corrections to make applicable.
v1: Not applicable, conflicting line numbers, code changed.
drivers/staging/rtl8192e/rtl819x_HTProc.c | 64 +++++++++++------------ 1 file changed, 32 insertions(+), 32 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +32 -32
@@ -231,7 +231,7 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap, u8 *len, u8 is_encrypt, bool assoc) { struct rt_hi_throughput *ht = ieee->ht_info; -struct ht_capab_ele *pCapELE =NULL ; +struct ht_capab_ele *cap_ele =NULL ;if (!pos_ht_cap || !ht) { netdev_warn(ieee->dev,
@@ -244,66 +244,66 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap,static const u8 EWC11NHTCap[] = {0x00 ,0x90 ,0x4c ,0x33 };memcpy (pos_ht_cap, EWC11NHTCap,sizeof (EWC11NHTCap)); - pCapELE = (struct ht_capab_ele *)&pos_ht_cap[4 ]; + cap_ele = (struct ht_capab_ele *)&pos_ht_cap[4 ]; *len =30 +2 ; }else { - pCapELE = (struct ht_capab_ele *)pos_ht_cap; + cap_ele = (struct ht_capab_ele *)pos_ht_cap; *len =26 +2 ; } - pCapELE->AdvCoding =0 ; + cap_ele->AdvCoding =0 ;if (ieee->GetHalfNmodeSupportByAPsHandler (ieee->dev)) - pCapELE->ChlWidth =0 ; + cap_ele->ChlWidth =0 ;else - pCapELE->ChlWidth =1 ; + cap_ele->ChlWidth =1 ; - pCapELE->MimoPwrSave =3 ; - pCapELE->GreenField =0 ; - pCapELE->ShortGI20Mhz =1 ; - pCapELE->ShortGI40Mhz =1 ; + cap_ele->MimoPwrSave =3 ; + cap_ele->GreenField =0 ; + cap_ele->ShortGI20Mhz =1 ; + cap_ele->ShortGI40Mhz =1 ; - pCapELE->TxSTBC =1 ; - pCapELE->RxSTBC =0 ; - pCapELE->DelayBA =0 ; - pCapELE->MaxAMSDUSize = (MAX_RECEIVE_BUFFER_SIZE >=7935 ) ?1 :0 ; - pCapELE->DssCCk =1 ; - pCapELE->PSMP =0 ; - pCapELE->LSigTxopProtect =0 ; + cap_ele->TxSTBC =1 ; + cap_ele->RxSTBC =0 ; + cap_ele->DelayBA =0 ; + cap_ele->MaxAMSDUSize = (MAX_RECEIVE_BUFFER_SIZE >=7935 ) ?1 :0 ; + cap_ele->DssCCk =1 ; + cap_ele->PSMP =0 ; + cap_ele->LSigTxopProtect =0 ;netdev_dbg (ieee->dev,"TX HT cap/info ele BW=%d MaxAMSDUSize:%d DssCCk:%d\n" , - pCapELE->ChlWidth, pCapELE->MaxAMSDUSize, pCapELE->DssCCk); + cap_ele->ChlWidth, cap_ele->MaxAMSDUSize, cap_ele->DssCCk);if (is_encrypt) { - pCapELE->MPDUDensity =7 ; - pCapELE->MaxRxAMPDUFactor =2 ; + cap_ele->MPDUDensity =7 ; + cap_ele->MaxRxAMPDUFactor =2 ; }else { - pCapELE->MaxRxAMPDUFactor =3 ; - pCapELE->MPDUDensity =0 ; + cap_ele->MaxRxAMPDUFactor =3 ; + cap_ele->MPDUDensity =0 ; } -memcpy (pCapELE->MCS, ieee->reg_dot11ht_oper_rate_set,16 ); -memset (&pCapELE->ExtHTCapInfo,0 ,2 ); -memset (pCapELE->TxBFCap,0 ,4 ); +memcpy (cap_ele->MCS, ieee->reg_dot11ht_oper_rate_set,16 ); +memset (&cap_ele->ExtHTCapInfo,0 ,2 ); +memset (cap_ele->TxBFCap,0 ,4 ); - pCapELE->ASCap =0 ; + cap_ele->ASCap =0 ;if (assoc) {if (ht->iot_action &HT_IOT_ACT_DISABLE_MCS15 ) - pCapELE->MCS[1 ] &=0x7f ; + cap_ele->MCS[1 ] &=0x7f ;if (ht->iot_action &HT_IOT_ACT_DISABLE_MCS14 ) - pCapELE->MCS[1 ] &=0xbf ; + cap_ele->MCS[1 ] &=0xbf ;if (ht->iot_action &HT_IOT_ACT_DISABLE_ALL_2SS ) - pCapELE->MCS[1 ] &=0x00 ; + cap_ele->MCS[1 ] &=0x00 ;if (ht->iot_action &HT_IOT_ACT_DISABLE_RX_40MHZ_SHORT_GI ) - pCapELE->ShortGI40Mhz =0 ; + cap_ele->ShortGI40Mhz =0 ;if (ieee->GetHalfNmodeSupportByAPsHandler (ieee->dev)) { - pCapELE->ChlWidth =0 ; - pCapELE->MCS[1 ] =0 ; + cap_ele->ChlWidth =0 ; + cap_ele->MCS[1 ] =0 ; } } }
Signature · 1 line
2.41.0
PATCH v2 3/4 staging: rtl8192e: rename variable HTGetHighestMCSRate
In reply to Gary RookardCoding style issue, checkpatch Avoid CamelCase, rename it. HTGetHighestMCSRate -> ht_get_highest_mcs_rate
---
v2: Corrections to make applicable.
v1: Not applicable, conflicting line numbers, code changed.
drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_wx.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
@@ -357,7 +357,7 @@ static u8 ht_pick_mcs_rate(struct rtllib_device *ieee, u8 *pOperateMCS)return true; } -u8 HTGetHighestMCSRate (struct rtllib_device *ieee,u8 *pMCSRateSet, +u8 ht_get_highest_mcs_rate (struct rtllib_device *ieee,u8 *pMCSRateSet,u8 *pMCSFilter) {u8 i, j;
@@ -493,7 +493,7 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee)HTFilterMCSRate (ieee, pPeerHTCap->MCS, ieee->dot11ht_oper_rate_set); pMcsFilter =MCS_FILTER_ALL ; - ieee->HTHighestOperaRate =HTGetHighestMCSRate (ieee, + ieee->HTHighestOperaRate =ht_get_highest_mcs_rate (ieee, ieee->dot11ht_oper_rate_set, pMcsFilter); ieee->HTCurrentOperaRate = ieee->HTHighestOperaRate;
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -1763,7 +1763,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee, struct rtllib_network *pNetwork);void HT_update_self_and_peer_setting (struct rtllib_device *ieee,struct rtllib_network *pNetwork); -u8 HTGetHighestMCSRate (struct rtllib_device *ieee,u8 *pMCSRateSet, +u8 ht_get_highest_mcs_rate (struct rtllib_device *ieee,u8 *pMCSRateSet,u8 *pMCSFilter);extern u8 MCS_FILTER_ALL [];extern u16 MCS_DATA_RATE [2 ][2 ][77 ];
drivers/staging/rtl8192e/rtllib_wx.c +1 -1
@@ -134,7 +134,7 @@ static inline char *rtl819x_translate_scan(struct rtllib_device *ieee, ((ht_cap->ShortGI40Mhz) ? 1 : 0) : ((ht_cap->ShortGI20Mhz) ?1 :0 ); - max_mcs =HTGetHighestMCSRate (ieee, ht_cap->MCS, + max_mcs =ht_get_highest_mcs_rate (ieee, ht_cap->MCS,MCS_FILTER_ALL ); rate =MCS_DATA_RATE [is40M][isShortGI][max_mcs &0x7f ];if (rate > max_rate)
Signature · 1 line
2.41.0
PATCH v2 4/4 staging: rtl8192e: renamed variable HTFilterMCSRate
In reply to Gary RookardCoding style issue, checkpatch Avoid CamelCase,
rename it. HTFilterMCSRate -> ht_filter_mcs_rate
---
v2: Corrections to make applicable.
v1: Not applicable, conflicting line numbers, code changed.
drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
@@ -397,7 +397,7 @@ u8 ht_get_highest_mcs_rate(struct rtllib_device *ieee, u8 *pMCSRateSet,return mcsRate |0x80 ; } -static u8 HTFilterMCSRate (struct rtllib_device *ieee,u8 *pSupportMCS, +static u8 ht_filter_mcs_rate (struct rtllib_device *ieee,u8 *pSupportMCS,u8 *pOperateMCS) {u8 i;
@@ -490,7 +490,7 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee)ht_iot_act_determine_ra_func (ieee, ((pPeerHTCap->MCS[1 ]) !=0 )); -HTFilterMCSRate (ieee, pPeerHTCap->MCS, ieee->dot11ht_oper_rate_set); +ht_filter_mcs_rate (ieee, pPeerHTCap->MCS, ieee->dot11ht_oper_rate_set); pMcsFilter =MCS_FILTER_ALL ; ieee->HTHighestOperaRate = ht_get_highest_mcs_rate(ieee,
Signature · 1 line
2.41.0
Greg KH
maintainerQuoted 6 lines · Gary Rookard
Hi,
This patch series renames (4) different variables with the checkpatch coding style issue, Avoid CamelCase.
(resubmittals)
I see two different copies of this patch set, please send only one as now I don't know which one is "real".
Please fix up and send a v3, I've dropped both from my queue.
thanks,
greg k-h
Quoted 8 lines · Greg KH
Quoted 6 lines · Gary Rookard
Hi,
This patch series renames (4) different variables with the checkpatch coding style issue, Avoid CamelCase.
(resubmittals)
Quoted 8 lines
I see two different copies of this patch set, please send only one as now I don't know which one is "real".
Please fix up and send a v3, I've dropped both from my queue.
thanks,
greg k-h
--
Sorry for that, I've resent a v3 however 2 got stuck together resulting in an extra cover letter...
Regards,
Gary
Signature · 1 line
Sent with my mu4e on Gentoo GNU/linux.