Browse Source

qcacld-3.0: Rename pHddCtx in wlan_hdd_debugfs.c

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: Iaa57767de3f21a4774ce307b21beeb5c814479c4
CRs-Fixed: 2103660
Jeff Johnson 7 năm trước cách đây
mục cha
commit
8d5e82bcd1
1 tập tin đã thay đổi với 6 bổ sung6 xóa
  1. 6 6
      core/hdd/src/wlan_hdd_debugfs.c

+ 6 - 6
core/hdd/src/wlan_hdd_debugfs.c

@@ -303,7 +303,7 @@ static ssize_t __wcnss_patterngen_write(struct file *file,
 				      loff_t *ppos)
 {
 	struct hdd_adapter *pAdapter;
-	struct hdd_context *pHddCtx;
+	struct hdd_context *hdd_ctx;
 	tSirAddPeriodicTxPtrn *addPeriodicTxPtrnParams;
 	tSirDelPeriodicTxPtrn *delPeriodicTxPtrnParams;
 
@@ -324,12 +324,12 @@ static ssize_t __wcnss_patterngen_write(struct file *file,
 		return -EINVAL;
 	}
 
-	pHddCtx = WLAN_HDD_GET_CTX(pAdapter);
-	ret = wlan_hdd_validate_context(pHddCtx);
+	hdd_ctx = WLAN_HDD_GET_CTX(pAdapter);
+	ret = wlan_hdd_validate_context(hdd_ctx);
 	if (0 != ret)
 		return ret;
 
-	if (!wlan_hdd_validate_modules_state(pHddCtx))
+	if (!wlan_hdd_validate_modules_state(hdd_ctx))
 		return -EINVAL;
 
 	if (!sme_is_feature_supported_by_fw(WLAN_PERIODIC_TX_PTRN)) {
@@ -395,7 +395,7 @@ static ssize_t __wcnss_patterngen_write(struct file *file,
 				 &pAdapter->macAddressCurrent);
 
 		/* Delete pattern */
-		status = sme_del_periodic_tx_ptrn(pHddCtx->hHal,
+		status = sme_del_periodic_tx_ptrn(hdd_ctx->hHal,
 						  delPeriodicTxPtrnParams);
 		if (QDF_STATUS_SUCCESS != status) {
 			hdd_err("sme_del_periodic_tx_ptrn() failed!");
@@ -467,7 +467,7 @@ static ssize_t __wcnss_patterngen_write(struct file *file,
 	}
 
 	/* Add pattern */
-	status = sme_add_periodic_tx_ptrn(pHddCtx->hHal,
+	status = sme_add_periodic_tx_ptrn(hdd_ctx->hHal,
 					  addPeriodicTxPtrnParams);
 	if (QDF_STATUS_SUCCESS != status) {
 		hdd_err("sme_add_periodic_tx_ptrn() failed!");