From 9a7136d522819aa10ea89cf1e6a9a2c4b70503e7 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Tue, 29 Aug 2017 14:33:56 -0700 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_green_ap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_green_ap.c b/core/hdd/src/wlan_hdd_green_ap.c index 62b1d8e7d099..e69292f03db1 100644 --- a/core/hdd/src/wlan_hdd_green_ap.c +++ b/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)