Staging: rtl8192e: Variable renames to fix checkpatch
cover Staging: rtl8192e: Variable renames to fix checkpatch
This patch series renames 4 varialbes to fix checkpatch warning Avoid CamelCase.
Thank you in advance to all reviewers
~Tree
Tree Davies (4):
Staging: rtl8192e: Rename variable pBa
Staging: rtl8192e: Rename variable TSInfo
Staging: rtl8192e: Rename variable ReasonCode
Staging: rtl8192e: Rename variable pTS
drivers/staging/rtl8192e/rtl819x_BAProc.c | 58 ++++++------- drivers/staging/rtl8192e/rtl819x_Qos.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 100 +++++++++++----------- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_tx.c | 8 +- 5 files changed, 85 insertions(+), 85 deletions(-)
Signature · 1 line
2.39.2
PATCH 1/4 Staging: rtl8192e: Rename variable pBa
Rename variable pBa to ba to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +3 -3
@@ -43,11 +43,11 @@ static u8 tx_ts_delete_ba(struct rtllib_device *ieee, struct tx_ts_record *pTxTsstatic u8 rx_ts_delete_ba (struct rtllib_device *ieee,struct rx_ts_record *ts) { -struct ba_record *pBa = &ts->rx_admitted_ba_record; +struct ba_record *ba = &ts->rx_admitted_ba_record;u8 bSendDELBA = false; -if (pBa->b_valid) { -deactivate_ba_entry (ieee, pBa); +if (ba->b_valid) { +deactivate_ba_entry (ieee, ba); bSendDELBA = true; }
Signature · 1 line
2.39.2
PATCH 2/4 Staging: rtl8192e: Rename variable TSInfo
In reply to Tree DaviesRename variable TSInfo to ts_info to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 2 +- drivers/staging/rtl8192e/rtl819x_Qos.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +1 -1
@@ -474,7 +474,7 @@ void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *pTS, ba->dialog_token++; ba->ba_param_set.field.amsdu_support =0 ; ba->ba_param_set.field.ba_policy = policy; - ba->ba_param_set.field.tid = pTS->TsCommonInfo.TSpec.f.TSInfo.field.ucTSID; + ba->ba_param_set.field.tid = pTS->TsCommonInfo.TSpec.f.ts_info.field.ucTSID; ba->ba_param_set.field.buffer_size =32 ; ba->ba_timeout_value =0 ; ba->ba_start_seq_ctrl.field.seq_num = (pTS->TxCurSeq +3 ) %4096 ;
drivers/staging/rtl8192e/rtl819x_Qos.h +1 -1
@@ -60,7 +60,7 @@ union tspec_body {u8 charData[55 ];struct { -union qos_tsinfo TSInfo; +union qos_tsinfo ts_info;u16 NominalMSDUsize;u16 MaxMSDUsize;u32 MinServiceItv;
drivers/staging/rtl8192e/rtl819x_TSProc.c +3 -3
@@ -201,8 +201,8 @@ static struct ts_common_info *SearchAdmitTRStream(struct rtllib_device *ieee,continue ;list_for_each_entry (pRet, psearch_list, List) {if (memcmp (pRet->addr, addr,6 ) ==0 && - pRet->TSpec.f.TSInfo.field.ucTSID ==TID && - pRet->TSpec.f.TSInfo.field.ucDirection == dir) + pRet->TSpec.f.ts_info.field.ucTSID ==TID && + pRet->TSpec.f.ts_info.field.ucDirection == dir)break ; }if (&pRet->List != psearch_list)
@@ -242,7 +242,7 @@ bool rtllib_get_ts(struct rtllib_device *ieee, struct ts_common_info **ppTS, {u8 UP =0 ;union tspec_body TSpec; -union qos_tsinfo *ts_info = &TSpec.f.TSInfo; +union qos_tsinfo *ts_info = &TSpec.f.ts_info;struct list_head *pUnusedList;struct list_head *pAddmitList;enum direction_value Dir;
Signature · 1 line
2.39.2
PATCH 3/4 Staging: rtl8192e: Rename variable ReasonCode
In reply to Tree DaviesRename variable ReasonCode to reason_code to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +13 -13
@@ -125,7 +125,7 @@ static struct sk_buff *rtllib_ADDBA(struct rtllib_device *ieee, u8 *dst,static struct sk_buff *rtllib_DELBA (struct rtllib_device *ieee,u8 *dst,struct ba_record *ba, -enum tr_select TxRxSelect,u16 ReasonCode) +enum tr_select TxRxSelect,u16 reason_code) {union delba_param_set DelbaParamSet;struct sk_buff *skb =NULL ;
@@ -134,8 +134,8 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst,u16 len =6 + ieee->tx_headroom;if (net_ratelimit ()) -netdev_dbg (ieee->dev,"%s(): ReasonCode(%d) sentd to: %pM\n" , - __func__, ReasonCode, dst); +netdev_dbg (ieee->dev,"%s(): reason_code(%d) sentd to: %pM\n" , + __func__, reason_code, dst);memset (&DelbaParamSet,0 ,2 );
@@ -163,7 +163,7 @@ static struct sk_buff *rtllib_DELBA(struct rtllib_device *ieee, u8 *dst,put_unaligned_le16 (DelbaParamSet.short_data, tag); tag +=2 ; -put_unaligned_le16 (ReasonCode, tag); +put_unaligned_le16 (reason_code, tag); tag +=2 ;#ifdef VERBOSE_DEBUG
@@ -200,11 +200,11 @@ static void rtllib_send_ADDBARsp(struct rtllib_device *ieee, u8 *dst,static void rtllib_send_DELBA (struct rtllib_device *ieee,u8 *dst,struct ba_record *ba,enum tr_select TxRxSelect, -u16 ReasonCode) +u16 reason_code) {struct sk_buff *skb; - skb =rtllib_DELBA (ieee, dst, ba, TxRxSelect, ReasonCode); + skb =rtllib_DELBA (ieee, dst, ba, TxRxSelect, reason_code);if (skb)softmac_mgmt_xmit (skb, ieee);else
@@ -308,7 +308,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)u8 *dst =NULL , *pDialogToken =NULL , *tag =NULL ;u16 *status_code =NULL , *pBaTimeoutVal =NULL ;union ba_param_set *pBaParamSet =NULL ; -u16 ReasonCode; +u16 reason_code;if (skb->len <sizeof (struct ieee80211_hdr_3addr ) +9 ) { netdev_warn(ieee->dev, "Invalid skb len in BARSP(%d / %d)\n",
@@ -333,14 +333,14 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) ieee->current_network.qos_data.active, ieee->ht_info->current_ht_support, ieee->ht_info->bCurrentAMPDUEnable); - ReasonCode =DELBA_REASON_UNKNOWN_BA ; + reason_code =DELBA_REASON_UNKNOWN_BA ; goto OnADDBARsp_Reject; }if (!rtllib_get_ts (ieee, (struct ts_common_info **)&pTS, dst, (u8)(pBaParamSet->field.tid),TX_DIR , false)) {netdev_warn (ieee->dev,"%s(): can't get TS\n" , __func__); - ReasonCode =DELBA_REASON_UNKNOWN_BA ; + reason_code =DELBA_REASON_UNKNOWN_BA ; goto OnADDBARsp_Reject; }
@@ -357,7 +357,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)netdev_warn (ieee->dev,"%s(): ADDBA Rsp. BA invalid, DELBA!\n" , __func__); - ReasonCode =DELBA_REASON_UNKNOWN_BA ; + reason_code =DELBA_REASON_UNKNOWN_BA ; goto OnADDBARsp_Reject; }else { netdev_dbg(ieee->dev,
@@ -370,7 +370,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)if (pBaParamSet->field.ba_policy ==BA_POLICY_DELAYED ) { pTS->bAddBaReqDelayed = true;deactivate_ba_entry (ieee, pAdmittedBA); - ReasonCode =DELBA_REASON_END_BA ; + reason_code =DELBA_REASON_END_BA ; goto OnADDBARsp_Reject; }
@@ -383,7 +383,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) }else { pTS->bAddBaReqDelayed = true; pTS->bDisable_AddBa = true; - ReasonCode =DELBA_REASON_END_BA ; + reason_code =DELBA_REASON_END_BA ; goto OnADDBARsp_Reject; }
@@ -394,7 +394,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)struct ba_record BA ;BA .ba_param_set = *pBaParamSet; -rtllib_send_DELBA (ieee, dst, &BA ,TX_DIR , ReasonCode); +rtllib_send_DELBA (ieee, dst, &BA ,TX_DIR , reason_code);return 0 ; } }
Signature · 1 line
2.39.2
PATCH 4/4 Staging: rtl8192e: Rename variable pTS
In reply to Tree DaviesRename variable pTS to ts to fix checkpatch warning Avoid CamelCase.
--- drivers/staging/rtl8192e/rtl819x_BAProc.c | 26 +++---- drivers/staging/rtl8192e/rtl819x_TSProc.c | 94 +++++++++++------------ drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_tx.c | 8 +- 4 files changed, 65 insertions(+), 65 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +13 -13
@@ -304,7 +304,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) {struct ieee80211_hdr_3addr *rsp =NULL ;struct ba_record *pending_ba, *pAdmittedBA; -struct tx_ts_record *pTS =NULL ; +struct tx_ts_record *ts =NULL ;u8 *dst =NULL , *pDialogToken =NULL , *tag =NULL ;u16 *status_code =NULL , *pBaTimeoutVal =NULL ;union ba_param_set *pBaParamSet =NULL ;
@@ -337,16 +337,16 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) goto OnADDBARsp_Reject; } -if (!rtllib_get_ts (ieee, (struct ts_common_info **)&pTS, dst, +if (!rtllib_get_ts (ieee, (struct ts_common_info **)&ts, dst, (u8)(pBaParamSet->field.tid),TX_DIR , false)) {netdev_warn (ieee->dev,"%s(): can't get TS\n" , __func__); reason_code =DELBA_REASON_UNKNOWN_BA ; goto OnADDBARsp_Reject; } - pTS->bAddBaReqInProgress = false; - pending_ba = &pTS->TxPendingBARecord; - pAdmittedBA = &pTS->TxAdmittedBARecord; + ts->bAddBaReqInProgress = false; + pending_ba = &ts->TxPendingBARecord; + pAdmittedBA = &ts->TxAdmittedBARecord;if (pAdmittedBA->b_valid) { netdev_dbg(ieee->dev, "%s(): ADDBA response already admitted\n",
@@ -368,7 +368,7 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)if (*status_code ==ADDBA_STATUS_SUCCESS ) {if (pBaParamSet->field.ba_policy ==BA_POLICY_DELAYED ) { - pTS->bAddBaReqDelayed = true; + ts->bAddBaReqDelayed = true;deactivate_ba_entry (ieee, pAdmittedBA); reason_code =DELBA_REASON_END_BA ; goto OnADDBARsp_Reject;
@@ -381,8 +381,8 @@ int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb)deactivate_ba_entry (ieee, pAdmittedBA);activate_ba_entry (pAdmittedBA, *pBaTimeoutVal); }else { - pTS->bAddBaReqDelayed = true; - pTS->bDisable_AddBa = true; + ts->bAddBaReqDelayed = true; + ts->bDisable_AddBa = true; reason_code =DELBA_REASON_END_BA ; goto OnADDBARsp_Reject; }
@@ -461,10 +461,10 @@ int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb)return 0 ; } -void rtllib_ts_init_add_ba (struct rtllib_device *ieee,struct tx_ts_record *pTS, +void rtllib_ts_init_add_ba (struct rtllib_device *ieee,struct tx_ts_record *ts,u8 policy,u8 bOverwritePending) { -struct ba_record *ba = &pTS->TxPendingBARecord; +struct ba_record *ba = &ts->TxPendingBARecord;if (ba->b_valid && !bOverwritePending)return ;
@@ -474,14 +474,14 @@ void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *pTS, ba->dialog_token++; ba->ba_param_set.field.amsdu_support =0 ; ba->ba_param_set.field.ba_policy = policy; - ba->ba_param_set.field.tid = pTS->TsCommonInfo.TSpec.f.ts_info.field.ucTSID; + ba->ba_param_set.field.tid = ts->TsCommonInfo.TSpec.f.ts_info.field.ucTSID; ba->ba_param_set.field.buffer_size =32 ; ba->ba_timeout_value =0 ; - ba->ba_start_seq_ctrl.field.seq_num = (pTS->TxCurSeq +3 ) %4096 ; + ba->ba_start_seq_ctrl.field.seq_num = (ts->TxCurSeq +3 ) %4096 ;activate_ba_entry (ba,BA_SETUP_TIMEOUT ); -rtllib_send_ADDBAReq (ieee, pTS->TsCommonInfo.addr, ba); +rtllib_send_ADDBAReq (ieee, ts->TsCommonInfo.addr, ba); } void rtllib_ts_init_del_ba(struct rtllib_device *ieee,
drivers/staging/rtl8192e/rtl819x_TSProc.c +47 -47
134 lines not on this page · raw message
drivers/staging/rtl8192e/rtllib.h +1 -1
@@ -1788,7 +1788,7 @@ u16 TxCountToDataRate(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); -void rtllib_ts_init_add_ba (struct rtllib_device *ieee,struct tx_ts_record *pTS, +void rtllib_ts_init_add_ba (struct rtllib_device *ieee,struct tx_ts_record *ts,u8 policy,u8 bOverwritePending); void rtllib_ts_init_del_ba(struct rtllib_device *ieee, struct ts_common_info *pTsCommonInfo,
drivers/staging/rtl8192e/rtllib_tx.c +4 -4
@@ -495,13 +495,13 @@ static u16 rtllib_query_seqnum(struct rtllib_device *ieee, struct sk_buff *skb,if (is_multicast_ether_addr (dst))return 0 ;if (IsQoSDataFrame (skb->data)) { -struct tx_ts_record *pTS =NULL ; +struct tx_ts_record *ts =NULL ; -if (!rtllib_get_ts (ieee, (struct ts_common_info **)(&pTS), dst, +if (!rtllib_get_ts (ieee, (struct ts_common_info **)(&ts), dst, skb->priority,TX_DIR , true))return 0 ; - seqnum = pTS->TxCurSeq; - pTS->TxCurSeq = (pTS->TxCurSeq +1 ) %4096 ; + seqnum = ts->TxCurSeq; + ts->TxCurSeq = (ts->TxCurSeq +1 ) %4096 ;return seqnum; }return 0 ;
Signature · 1 line
2.39.2
Quoted 12 lines · Tree Davies
This patch series renames 4 varialbes to fix checkpatch warning Avoid CamelCase.
Thank you in advance to all reviewers
~TreeTree Davies (4):
Staging: rtl8192e: Rename variable pBa
Staging: rtl8192e: Rename variable TSInfo
Staging: rtl8192e: Rename variable ReasonCode
Staging: rtl8192e: Rename variable pTS
Quoted 7 lines
drivers/staging/rtl8192e/rtl819x_BAProc.c | 58 ++++++------- drivers/staging/rtl8192e/rtl819x_Qos.h | 2 +- drivers/staging/rtl8192e/rtl819x_TSProc.c | 100 +++++++++++----------- drivers/staging/rtl8192e/rtllib.h | 2 +- drivers/staging/rtl8192e/rtllib_tx.c | 8 +- 5 files changed, 85 insertions(+), 85 deletions(-)