From d85b76156715aedf768424daf06e3c6ba09a8d24 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 28 Aug 2017 11:57:24 -0700 Subject: [PATCH] qcacld-3.0: Replace hdd_context_t in wlan_hdd_lpass.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: I5ac8829606eda6940deebe13037e15e47bed6f9b CRs-Fixed: 2100188 --- core/hdd/src/wlan_hdd_lpass.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/hdd/src/wlan_hdd_lpass.c b/core/hdd/src/wlan_hdd_lpass.c index 9399c0f56e0a..9cf8f5c80284 100644 --- a/core/hdd/src/wlan_hdd_lpass.c +++ b/core/hdd/src/wlan_hdd_lpass.c @@ -47,7 +47,7 @@ * * Fill in the channel info to chan_info structure. */ -static void wlan_hdd_get_channel_info(hdd_context_t *hdd_ctx, +static void wlan_hdd_get_channel_info(struct hdd_context *hdd_ctx, struct svc_channel_info *chan_info, uint32_t chan_id) { @@ -93,7 +93,7 @@ static int wlan_hdd_gen_wlan_status_pack(struct wlan_status_data *data, hdd_station_ctx_t *sta_ctx, uint8_t is_on, uint8_t is_connected) { - hdd_context_t *hdd_ctx = NULL; + struct hdd_context *hdd_ctx = NULL; uint8_t buflen = WLAN_SVC_COUNTRY_CODE_LEN; int i; uint32_t chan_id; @@ -213,7 +213,7 @@ static void wlan_hdd_send_status_pkg(struct hdd_adapter *adapter, { int ret = 0; struct wlan_status_data *data = NULL; - hdd_context_t *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD); + struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD); if (!hdd_ctx) return; @@ -253,7 +253,7 @@ static void wlan_hdd_send_version_pkg(uint32_t fw_version, { int ret = 0; struct wlan_version_data data; - hdd_context_t *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD); + struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD); if (!hdd_ctx) return;