Sfoglia il codice sorgente

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
Jeff Johnson 7 anni fa
parent
commit
2b59af6a75
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 3 1
      core/hdd/inc/wlan_hdd_ftm.h
  2. 1 1
      core/hdd/src/wlan_hdd_ftm.c

+ 3 - 1
core/hdd/inc/wlan_hdd_ftm.h

@@ -41,7 +41,9 @@
 #include "qdf_types.h"
 #include <wlan_ptt_sock_svc.h>
 
-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);

+ 1 - 1
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;