From 8d5e82bcd1e7d783a1d54791953799ec685d6072 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 3 Sep 2017 09:14:51 -0700 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_debugfs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/hdd/src/wlan_hdd_debugfs.c b/core/hdd/src/wlan_hdd_debugfs.c index 7d3f00608b..dd48ea8156 100644 --- a/core/hdd/src/wlan_hdd_debugfs.c +++ b/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!");