staging: rtl8192e: renaming of 5 different variables patch series
cover staging: rtl8192e: renaming of 5 different variables patch series
Hi,
This patch series renames 5 different variables from Pascal/CamelCase to snake case.
Linux kernel coding style (cleanup), checkpatch Avoid CamelCase. Driver/module rtl8291e compiles.
Patch 1/5) renamed variable from HTMcsToDataRate -> ht_mcs_to_data_rate Patch 2/5) renamed variable from TXCountToDAtaRate -> tx-count_to_data_rate Patch 3/5) renamed variable from IsHTHalfNmodeAPs -> is_ht_half_nmode_aps Patch 4/5) renamed variable from HTIOTPeerDetermine -> ht_iot_peer_determine Patch 5/5) renamed variable from HTIOTActIsMgntUseCCK6M -> ht_iot_act_is_mgnt_use_cck_6m
Regards,
Gary
Signature · 1 line
2.41.0
PATCH 1/5 staging: rtl8192e; renamed variable HTMcsToDataRate
Renamed variable from Pascal/CamelCase to Snake case the variable HTMcsToDataRate.
HTMcsToDataRate -> ht_mcs_to_data_rate
Linux Kernel coding style (cleanup), checkpatch Avoid CamelCase. Driver/module rtl8192e compiles.
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +3 -3
@@ -103,7 +103,7 @@ void ht_update_default_setting(struct rtllib_device *ieee) ht_info->rx_reorder_pending_time =30 ; } -static u16 HTMcsToDataRate (struct rtllib_device *ieee,u8 nMcsRate) +static u16 ht_mcs_to_data_rate (struct rtllib_device *ieee,u8 nMcsRate) {struct rt_hi_throughput *ht_info = ieee->ht_info;
@@ -422,8 +422,8 @@ u8 HTGetHighestMCSRate(struct rtllib_device *ieee, u8 *pMCSRateSet, bitMap = availableMcsRate[i];for (j =0 ; j <8 ; j++) {if ((bitMap %2 ) !=0 ) { -if (HTMcsToDataRate (ieee, (8 * i + j)) > -HTMcsToDataRate (ieee, mcsRate)) +if (ht_mcs_to_data_rate (ieee, (8 * i + j)) > +ht_mcs_to_data_rate (ieee, mcsRate)) mcsRate =8 * i + j; } bitMap >>=1 ;
Signature · 1 line
2.41.0
PATCH 2/5 staging: rtl8192e: renamed variable TXCountToDataRate
In reply to Gary RookardRenamed from Pascal/CamelCase to Snake case the variable TXCountToDataRate.
TXCountToDataRate -> tx_count_to_data_rate
Linux kernel coding style (cleanup), checkpatch Avoid CamelCase. Driver/module rtl8192e compiles.
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_softmac_wx.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +1 -1
@@ -114,7 +114,7 @@ static u16 ht_mcs_to_data_rate(struct rtllib_device *ieee, u8 nMcsRate)return MCS_DATA_RATE [is40MHz][isShortGI][(nMcsRate &0x7f )]; } -u16 TxCountToDataRate (struct rtllib_device *ieee,u8 nDataRate) +u16 tx_count_to_data_rate (struct rtllib_device *ieee,u8 nDataRate) {u16 CCKOFDMRate[12 ] = {0x02 ,0x04 ,0x0b ,0x16 ,0x0c ,0x12 ,0x18 ,0x24 ,0x30 ,0x48 ,0x60 ,0x6c };
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -1783,7 +1783,7 @@ extern u16 MCS_DATA_RATE[2][2][77];u8 HTCCheck (struct rtllib_device *ieee,u8 *pFrame);void HTResetIOTSetting (struct rt_hi_throughput *ht_info);bool IsHTHalfNmodeAPs (struct rtllib_device *ieee); -u16 TxCountToDataRate (struct rtllib_device *ieee,u8 nDataRate); +u16 tx_count_to_data_rate (struct rtllib_device *ieee,u8 nDataRate);int rtllib_rx_ADDBAReq (struct rtllib_device *ieee,struct sk_buff *skb);int rtllib_rx_ADDBARsp (struct rtllib_device *ieee,struct sk_buff *skb);int rtllib_rx_DELBA (struct rtllib_device *ieee,struct sk_buff *skb);
drivers/staging/rtl8192e/rtllib_softmac_wx.c +1 -1
@@ -208,7 +208,7 @@ int rtllib_wx_get_rate(struct rtllib_device *ieee, {u32 tmp_rate; - tmp_rate =TxCountToDataRate (ieee, + tmp_rate =tx_count_to_data_rate (ieee, ieee->softmac_stats.CurrentShowTxate); wrqu->bitrate.value = tmp_rate *500000 ;
Signature · 1 line
2.41.0
PATCH 3/5 staging: rtl8192e: renamed variable IsHTHalfNmodeAPs
In reply to Gary RookardRenamed from Pascal/CamelCase to Snake case the variable IsHTHalfNmodeAPs.
ISHTHalfNmodeAPs -> is_ht_half_nmode_aps
Linux kernel coding style (cleanup), checkpatch Avoid CamelCase. Driver/module rtl8192e compiles.
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +1 -1
@@ -139,7 +139,7 @@ u16 tx_count_to_data_rate(struct rtllib_device *ieee, u8 nDataRate)return MCS_DATA_RATE [is40MHz][isShortGI][nDataRate &0xf ]; } -bool IsHTHalfNmodeAPs (struct rtllib_device *ieee) +bool is_ht_half_nmode_aps (struct rtllib_device *ieee) {bool retValue = false;struct rtllib_network *net = &ieee->current_network;
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -1782,7 +1782,7 @@ extern u8 MCS_FILTER_ALL[];extern u16 MCS_DATA_RATE [2 ][2 ][77 ];u8 HTCCheck (struct rtllib_device *ieee,u8 *pFrame);void HTResetIOTSetting (struct rt_hi_throughput *ht_info); -bool IsHTHalfNmodeAPs (struct rtllib_device *ieee); +bool is_ht_half_nmode_aps (struct rtllib_device *ieee);u16 tx_count_to_data_rate (struct rtllib_device *ieee,u8 nDataRate);int rtllib_rx_ADDBAReq (struct rtllib_device *ieee,struct sk_buff *skb);int rtllib_rx_ADDBARsp (struct rtllib_device *ieee,struct sk_buff *skb);
drivers/staging/rtl8192e/rtllib_softmac.c +1 -1
@@ -1872,7 +1872,7 @@ static void rtllib_rx_auth_resp(struct rtllib_device *ieee, struct sk_buff *skb) ieee->softmac_stats.rx_auth_rs_ok++;if (!(ieee->ht_info->iot_action &HT_IOT_ACT_PURE_N_MODE )) {if (!ieee->GetNmodeSupportBySecCfg (ieee->dev)) { -if (IsHTHalfNmodeAPs (ieee)) { +if (is_ht_half_nmode_aps (ieee)) { bSupportNmode = true; bHalfSupportNmode = true; }else {
Signature · 1 line
2.41.0
PATCH 4/5 staging: rtl8192e: renamed variable HTIOTPeerDetermine
In reply to Gary RookardRenamed from Pascal/CamelCase to Snake case the variable HTIOTPeerDetermine.
HTIOTPeerDetermine -> ht_iot_peer_determine
Linux kernel coding style (cleanup), checkpatch Avoid CamelCase. Driver/module rtl8192e compiles.
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
@@ -164,7 +164,7 @@ bool is_ht_half_nmode_aps(struct rtllib_device *ieee)return retValue; } -static void HTIOTPeerDetermine (struct rtllib_device *ieee) +static void ht_iot_peer_determine (struct rtllib_device *ieee) {struct rt_hi_throughput *ht_info = ieee->ht_info;struct rtllib_network *net = &ieee->current_network;
@@ -672,7 +672,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee, ht_info->RT2RT_HT_Mode = (enum rt_ht_capability )0 ; } -HTIOTPeerDetermine (ieee); +ht_iot_peer_determine (ieee); ht_info->iot_action =0 ; bIOTAction =HTIOTActIsMgntUseCCK6M (ieee, pNetwork);
Signature · 1 line
2.41.0
PATCH 5/5 staging: rtl8192e: renamed variable HTIOTActIsMgntUseCCK6M
In reply to Gary RookardRenamed from Pascal/CamelCase to Snake case the variable HTIOTActIsMgntUseCCK6M.
HTIOTActIsMgntUseCCK6M -> ht_iot_act_is_mgnt_use_cck_6m
Linux kernel coding style (cleanup), checkpatch Avoid CamelCase. Driver/module rtl8192e compiles.
--- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
@@ -207,7 +207,7 @@ static void ht_iot_peer_determine(struct rtllib_device *ieee)netdev_dbg (ieee->dev,"IOTPEER: %x\n" , ht_info->IOTPeer); } -static u8 HTIOTActIsMgntUseCCK6M (struct rtllib_device *ieee, +static u8 ht_iot_act_is_mgnt_use_cck_6m (struct rtllib_device *ieee,struct rtllib_network *network) {u8 retValue =0 ;
@@ -675,7 +675,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,ht_iot_peer_determine (ieee); ht_info->iot_action =0 ; - bIOTAction =HTIOTActIsMgntUseCCK6M (ieee, pNetwork); + bIOTAction =ht_iot_act_is_mgnt_use_cck_6m (ieee, pNetwork);if (bIOTAction) ht_info->iot_action |=HT_IOT_ACT_MGNT_USE_CCK_6M ; bIOTAction =HTIOTActIsCCDFsync (ieee);
Signature · 1 line
2.41.0