Эх сурвалжийг харах

qcacld-3.0: Rename pHddCtx in wlan_hdd_ipa.[ch]

The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pHddCtx to align with the Coding Style.

Change-Id: Icc584ab8c6467af7e95631b7898296885b310d65
CRs-Fixed: 2103653
Jeff Johnson 7 жил өмнө
parent
commit
2c4a93f5cc

+ 4 - 4
core/hdd/inc/wlan_hdd_ipa.h

@@ -102,8 +102,8 @@ void hdd_ipa_uc_sharing_stats_request(struct hdd_adapter *adapter,
 				      uint8_t reset_stats);
 void hdd_ipa_uc_set_quota(struct hdd_adapter *adapter, uint8_t set_quota,
 			  uint64_t quota_bytes);
-bool hdd_ipa_is_enabled(struct hdd_context *pHddCtx);
-bool hdd_ipa_uc_is_enabled(struct hdd_context *pHddCtx);
+bool hdd_ipa_is_enabled(struct hdd_context *hdd_ctx);
+bool hdd_ipa_uc_is_enabled(struct hdd_context *hdd_ctx);
 #ifndef QCA_LL_TX_FLOW_CONTROL_V2
 int hdd_ipa_send_mcc_scc_msg(struct hdd_context *hdd_ctx, bool mcc_mode);
 #else
@@ -186,12 +186,12 @@ static inline void hdd_ipa_uc_rt_debug_host_dump(struct hdd_context *hdd_ctx)
 {
 }
 
-static inline bool hdd_ipa_is_enabled(struct hdd_context *pHddCtx)
+static inline bool hdd_ipa_is_enabled(struct hdd_context *hdd_ctx)
 {
 	return false;
 }
 
-static inline bool hdd_ipa_uc_is_enabled(struct hdd_context *pHddCtx)
+static inline bool hdd_ipa_uc_is_enabled(struct hdd_context *hdd_ctx)
 {
 	return false;
 }

+ 11 - 11
core/hdd/src/wlan_hdd_ipa.c

@@ -1292,7 +1292,7 @@ static void hdd_ipa_dump_iface_context(struct hdd_ipa_priv *hdd_ipa)
 
 /**
  * hdd_ipa_dump_info() - dump HDD IPA struct
- * @pHddCtx: hdd main context
+ * @hdd_ctx: hdd main context
  *
  * Dump entire struct hdd_ipa
  *
@@ -1722,16 +1722,16 @@ void hdd_ipa_uc_stat_request(struct hdd_adapter *adapter, uint8_t reason)
 void hdd_ipa_uc_sharing_stats_request(struct hdd_adapter *adapter,
 				      uint8_t reset_stats)
 {
-	struct hdd_context *pHddCtx;
+	struct hdd_context *hdd_ctx;
 	struct hdd_ipa_priv *hdd_ipa;
 
 	if (!adapter)
 		return;
 
-	pHddCtx = WLAN_HDD_GET_CTX(adapter);
-	hdd_ipa = pHddCtx->hdd_ipa;
-	if (!hdd_ipa_is_enabled(pHddCtx) ||
-		!(hdd_ipa_uc_is_enabled(pHddCtx))) {
+	hdd_ctx = WLAN_HDD_GET_CTX(adapter);
+	hdd_ipa = hdd_ctx->hdd_ipa;
+	if (!hdd_ipa_is_enabled(hdd_ctx) ||
+		!(hdd_ipa_uc_is_enabled(hdd_ctx))) {
 		return;
 	}
 
@@ -1759,16 +1759,16 @@ void hdd_ipa_uc_sharing_stats_request(struct hdd_adapter *adapter,
 void hdd_ipa_uc_set_quota(struct hdd_adapter *adapter, uint8_t set_quota,
 			  uint64_t quota_bytes)
 {
-	struct hdd_context *pHddCtx;
+	struct hdd_context *hdd_ctx;
 	struct hdd_ipa_priv *hdd_ipa;
 
 	if (!adapter)
 		return;
 
-	pHddCtx = WLAN_HDD_GET_CTX(adapter);
-	hdd_ipa = pHddCtx->hdd_ipa;
-	if (!hdd_ipa_is_enabled(pHddCtx) ||
-		!(hdd_ipa_uc_is_enabled(pHddCtx))) {
+	hdd_ctx = WLAN_HDD_GET_CTX(adapter);
+	hdd_ipa = hdd_ctx->hdd_ipa;
+	if (!hdd_ipa_is_enabled(hdd_ctx) ||
+		!(hdd_ipa_uc_is_enabled(hdd_ctx))) {
 		return;
 	}