Bladeren bron

qcacld-3.0: Replace hdd_context_t in wlan_hdd_wowl.c

The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Icf9c75c9b99c7f94b14d0f70597ab05eebadc4f5
CRs-Fixed: 2100145
Jeff Johnson 7 jaren geleden
bovenliggende
commit
c1ad741419
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      core/hdd/src/wlan_hdd_wowl.c

+ 2 - 2
core/hdd/src/wlan_hdd_wowl.c

@@ -109,7 +109,7 @@ bool hdd_add_wowl_ptrn(hdd_adapter_t *pAdapter, const char *ptrn)
 	const char *temp;
 	tHalHandle hHal = WLAN_HDD_GET_HAL_CTX(pAdapter);
 	uint8_t sessionId = pAdapter->sessionId;
-	hdd_context_t *pHddCtx = pAdapter->pHddCtx;
+	struct hdd_context *pHddCtx = pAdapter->pHddCtx;
 
 	len = find_ptrn_len(ptrn);
 
@@ -269,7 +269,7 @@ bool hdd_del_wowl_ptrn(hdd_adapter_t *pAdapter, const char *ptrn)
 	bool patternFound = false;
 	QDF_STATUS qdf_ret_status;
 	uint8_t sessionId = pAdapter->sessionId;
-	hdd_context_t *pHddCtx = pAdapter->pHddCtx;
+	struct hdd_context *pHddCtx = pAdapter->pHddCtx;
 
 	/* Detect pattern */
 	for (id = 0;