From 2b59af6a756f643151a5f8fbe6a673e739cc3e89 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 28 Aug 2017 12:01:18 -0700 Subject: [PATCH] qcacld-3.0: Replace hdd_context_t in wlan_hdd_ftm.[ch] 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: Ie13624b984a39da923511c1c75a5b51ab29eca18 CRs-Fixed: 2100197 --- core/hdd/inc/wlan_hdd_ftm.h | 4 +++- core/hdd/src/wlan_hdd_ftm.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_ftm.h b/core/hdd/inc/wlan_hdd_ftm.h index 132cd3096a51..f52f84982403 100644 --- a/core/hdd/inc/wlan_hdd_ftm.h +++ b/core/hdd/inc/wlan_hdd_ftm.h @@ -41,7 +41,9 @@ #include "qdf_types.h" #include -int hdd_update_cds_config_ftm(hdd_context_t *hdd_ctx); +struct hdd_context; + +int hdd_update_cds_config_ftm(struct hdd_context *hdd_ctx); void hdd_ftm_mc_process_msg(void *message); #if defined(QCA_WIFI_FTM) QDF_STATUS wlan_hdd_ftm_testmode_cmd(void *data, int len); diff --git a/core/hdd/src/wlan_hdd_ftm.c b/core/hdd/src/wlan_hdd_ftm.c index 98ee0e7eeb59..408a078ec254 100644 --- a/core/hdd/src/wlan_hdd_ftm.c +++ b/core/hdd/src/wlan_hdd_ftm.c @@ -117,7 +117,7 @@ static uint32_t wlan_ftm_postmsg(uint8_t *cmd_ptr, uint16_t cmd_len) * Return: 0 on success; errno on failure */ -int hdd_update_cds_config_ftm(hdd_context_t *hdd_ctx) +int hdd_update_cds_config_ftm(struct hdd_context *hdd_ctx) { struct cds_config_info *cds_cfg;