Browse Source

qcacld-3.0: Replace hdd_adapter_t in wlan_hdd_green_ap.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_adapter_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: I762cb4c29060d780dcf9647aebe7246610d8f923
CRs-Fixed: 2101057
Jeff Johnson 7 years ago
parent
commit
9a7136d522
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/hdd/src/wlan_hdd_green_ap.c

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

@@ -118,7 +118,7 @@ static void hdd_green_ap_update(struct hdd_context *hdd_ctx,
  *
  * Return: 0 upon success, non-zero upon failure
  */
-static int hdd_green_ap_enable(hdd_adapter_t *adapter, uint8_t enable)
+static int hdd_green_ap_enable(struct hdd_adapter *adapter, uint8_t enable)
 {
 	int ret;
 
@@ -142,7 +142,7 @@ static void hdd_green_ap_mc(struct hdd_context *hdd_ctx,
 			    enum hdd_green_ap_event event)
 {
 	struct hdd_green_ap_ctx *green_ap;
-	hdd_adapter_t *adapter;
+	struct hdd_adapter *adapter;
 
 	green_ap = hdd_ctx->green_ap_ctx;
 	if (green_ap == NULL)