Browse Source

qcacld-3.0: Rename tHddHandle

Per the Linux coding style "mixed-case names are frowned upon" so
rename typedef tHddHandle to hdd_handle_t to align with the Linux
typedef naming convention.

Change-Id: I34849ed819b31564ca561a1718083793bf30a0a3
CRs-Fixed: 2254953
Jeff Johnson 6 years ago
parent
commit
2d29212dc8

+ 1 - 1
core/hdd/src/wlan_hdd_stats.c

@@ -2245,7 +2245,7 @@ put_attr_fail:
  *
  *
  * Return: None
  * Return: None
  */
  */
-void wlan_hdd_cfg80211_link_layer_stats_ext_callback(tHddHandle ctx,
+void wlan_hdd_cfg80211_link_layer_stats_ext_callback(hdd_handle_t ctx,
 						     tSirLLStatsResults *rsp)
 						     tSirLLStatsResults *rsp)
 {
 {
 	struct hdd_context *hdd_ctx;
 	struct hdd_context *hdd_ctx;

+ 1 - 1
core/hdd/src/wlan_hdd_stats.h

@@ -302,7 +302,7 @@ void wlan_hdd_cfg80211_link_layer_stats_callback(void *ctx,
  *
  *
  * Return: None.
  * Return: None.
  */
  */
-void wlan_hdd_cfg80211_link_layer_stats_ext_callback(tHddHandle ctx,
+void wlan_hdd_cfg80211_link_layer_stats_ext_callback(hdd_handle_t ctx,
 						     tSirLLStatsResults *rsp);
 						     tSirLLStatsResults *rsp);
 
 
 /**
 /**

+ 1 - 1
core/mac/inc/ani_global.h

@@ -896,7 +896,7 @@ typedef struct sAniSirGlobal {
 	tAniSirSys sys;
 	tAniSirSys sys;
 
 
 	/* PAL/HDD handle */
 	/* PAL/HDD handle */
-	tHddHandle hHdd;
+	hdd_handle_t hHdd;
 
 
 
 
 	tSmeStruct sme;
 	tSmeStruct sme;

+ 2 - 2
core/mac/inc/mac_init_api.h

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
  * any purpose with or without fee is hereby granted, provided that the
@@ -35,7 +35,7 @@
 tSirRetStatus mac_start(tHalHandle hHal, void *pHalMacStartParams);
 tSirRetStatus mac_start(tHalHandle hHal, void *pHalMacStartParams);
 QDF_STATUS mac_stop(tHalHandle hHal, tHalStopType stopType);
 QDF_STATUS mac_stop(tHalHandle hHal, tHalStopType stopType);
 tSirRetStatus mac_open(struct wlan_objmgr_psoc *psoc, tHalHandle *pHalHandle,
 tSirRetStatus mac_open(struct wlan_objmgr_psoc *psoc, tHalHandle *pHalHandle,
-			tHddHandle hHdd, struct cds_config_info *cds_cfg);
+			hdd_handle_t hHdd, struct cds_config_info *cds_cfg);
 QDF_STATUS mac_close(tHalHandle hHal);
 QDF_STATUS mac_close(tHalHandle hHal);
 
 
 #endif /* __MAC_INIT_API_H */
 #endif /* __MAC_INIT_API_H */

+ 12 - 14
core/mac/inc/sir_types.h

@@ -40,20 +40,18 @@
     ------------------------------------------------------------------------- */
     ------------------------------------------------------------------------- */
 typedef void *tHalHandle;
 typedef void *tHalHandle;
 
 
-/** ------------------------------------------------------------------------ *
-
-    \typedef tHddHandle
-
-    \brief Handle to the HDD.  The HDD handle is given to the HAL from
-    the HDD on halOpen.  The HDD handle is an input to all HDD/PAL function
-    calls and represents an opaque handle to the HDD instance that is tied
-    to the HAL instance, opened through halOpen.
-
-    The HDD must be able to derive it's internal instance structure pointer
-    through this handle.  hint hint...
-
-    ------------------------------------------------------------------------- */
-typedef void *tHddHandle;
+/**
+ * typedef hdd_handle_t - HDD Handle
+ *
+ * Handle to the HDD.  The HDD handle is given to the UMAC from the
+ * HDD on Open.  The HDD handle is an input to all HDD/PAL function
+ * calls and represents an opaque handle to the HDD instance that is
+ * tied to the UMAC instance
+ *
+ * The HDD must be able to derive it's internal instance structure
+ * pointer through this handle.
+ */
+typedef void *hdd_handle_t;
 
 
 /* ********************************************** *
 /* ********************************************** *
 *                                                *
 *                                                *

+ 2 - 2
core/mac/src/sys/legacy/src/system/src/mac_init_api.c

@@ -89,13 +89,13 @@ QDF_STATUS mac_stop(tHalHandle hHal, tHalStopType stopType)
    \brief this function will be called during init. This function is suppose to allocate all the
    \brief this function will be called during init. This function is suppose to allocate all the
  \       memory with the global context will be allocated here.
  \       memory with the global context will be allocated here.
    \param   tHalHandle pHalHandle
    \param   tHalHandle pHalHandle
-   \param   tHddHandle hHdd
+   \param   hdd_handle_t hHdd
    \param   tHalOpenParameters* pHalOpenParams
    \param   tHalOpenParameters* pHalOpenParams
    \return tSirRetStatus
    \return tSirRetStatus
    -------------------------------------------------------------*/
    -------------------------------------------------------------*/
 
 
 tSirRetStatus mac_open(struct wlan_objmgr_psoc *psoc, tHalHandle *pHalHandle,
 tSirRetStatus mac_open(struct wlan_objmgr_psoc *psoc, tHalHandle *pHalHandle,
-			tHddHandle hHdd, struct cds_config_info *cds_cfg)
+			hdd_handle_t hHdd, struct cds_config_info *cds_cfg)
 {
 {
 	tpAniSirGlobal p_mac = &global_mac_context;
 	tpAniSirGlobal p_mac = &global_mac_context;
 	tSirRetStatus status = eSIR_SUCCESS;
 	tSirRetStatus status = eSIR_SUCCESS;

+ 3 - 3
core/sme/inc/csr_link_list.h

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2011-2012, 2014-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2012, 2014-2016, 2018 The Linux Foundation. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
  * any purpose with or without fee is hereby granted, provided that the
@@ -48,7 +48,7 @@ typedef struct tagDblLinkList {
 	tListElem ListHead;
 	tListElem ListHead;
 	qdf_mutex_t Lock;
 	qdf_mutex_t Lock;
 	uint32_t Count;
 	uint32_t Count;
-	tHddHandle hHdd;
+	hdd_handle_t hHdd;
 	tListFlag Flag;
 	tListFlag Flag;
 	/*command debugging */
 	/*command debugging */
 	uint32_t cmdTimeoutDuration;       /* command timeout duration */
 	uint32_t cmdTimeoutDuration;       /* command timeout duration */
@@ -73,7 +73,7 @@ typedef struct tagDblLinkList {
 #define csrIsListEmpty(pHead) ((pHead)->next == (pHead))
 #define csrIsListEmpty(pHead) ((pHead)->next == (pHead))
 
 
 uint32_t csr_ll_count(tDblLinkList *pList);
 uint32_t csr_ll_count(tDblLinkList *pList);
-QDF_STATUS csr_ll_open(tHddHandle hHdd, tDblLinkList *pList);
+QDF_STATUS csr_ll_open(hdd_handle_t hHdd, tDblLinkList *pList);
 void csr_ll_close(tDblLinkList *pList);
 void csr_ll_close(tDblLinkList *pList);
 void csr_ll_lock(tDblLinkList *pList);
 void csr_ll_lock(tDblLinkList *pList);
 void csr_ll_unlock(tDblLinkList *pList);
 void csr_ll_unlock(tDblLinkList *pList);

+ 1 - 1
core/sme/inc/sme_api.h

@@ -970,7 +970,7 @@ QDF_STATUS sme_set_link_layer_stats_ind_cb(tHalHandle hHal,
 		void (*callbackRoutine)(void *callbackCtx,
 		void (*callbackRoutine)(void *callbackCtx,
 				int indType, void *pRsp));
 				int indType, void *pRsp));
 QDF_STATUS sme_set_link_layer_ext_cb(tHalHandle hal,
 QDF_STATUS sme_set_link_layer_ext_cb(tHalHandle hal,
-		     void (*ll_stats_ext_cb)(tHddHandle callback_ctx,
+		     void (*ll_stats_ext_cb)(hdd_handle_t callback_ctx,
 					     tSirLLStatsResults * rsp));
 					     tSirLLStatsResults * rsp));
 QDF_STATUS sme_reset_link_layer_stats_ind_cb(tHalHandle hhal);
 QDF_STATUS sme_reset_link_layer_stats_ind_cb(tHalHandle hhal);
 QDF_STATUS sme_ll_stats_set_thresh(tHalHandle hal,
 QDF_STATUS sme_ll_stats_set_thresh(tHalHandle hal,

+ 1 - 1
core/sme/inc/sme_internal.h

@@ -170,7 +170,7 @@ typedef struct tagSmeStruct {
 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
 	void (*pLinkLayerStatsIndCallback)(void *callbackContext,
 	void (*pLinkLayerStatsIndCallback)(void *callbackContext,
 			int indType, void *pRsp);
 			int indType, void *pRsp);
-	void (*link_layer_stats_ext_cb)(tHddHandle callback_ctx,
+	void (*link_layer_stats_ext_cb)(hdd_handle_t callback_ctx,
 					tSirLLStatsResults *rsp);
 					tSirLLStatsResults *rsp);
 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */
 
 

+ 1 - 1
core/sme/src/common/sme_api.c

@@ -11915,7 +11915,7 @@ QDF_STATUS sme_set_link_layer_stats_ind_cb(tHalHandle hHal,
  * Return: eHalStatus
  * Return: eHalStatus
  */
  */
 QDF_STATUS sme_set_link_layer_ext_cb(tHalHandle hal, void (*ll_stats_ext_cb)
 QDF_STATUS sme_set_link_layer_ext_cb(tHalHandle hal, void (*ll_stats_ext_cb)
-				(tHddHandle callback_ctx, tSirLLStatsResults
+				(hdd_handle_t callback_ctx, tSirLLStatsResults
 				*rsp))
 				*rsp))
 {
 {
 	QDF_STATUS status;
 	QDF_STATUS status;

+ 2 - 2
core/sme/src/csr/csr_link_list.c

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2011-2012, 2014-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2012, 2014-2018 The Linux Foundation. All rights reserved.
  *
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
  * any purpose with or without fee is hereby granted, provided that the
@@ -203,7 +203,7 @@ bool csr_ll_find_entry(tDblLinkList *pList, tListElem *pEntryToFind)
 	return fFound;
 	return fFound;
 }
 }
 
 
-QDF_STATUS csr_ll_open(tHddHandle hHdd, tDblLinkList *pList)
+QDF_STATUS csr_ll_open(hdd_handle_t hHdd, tDblLinkList *pList)
 {
 {
 	QDF_STATUS status = QDF_STATUS_SUCCESS;
 	QDF_STATUS status = QDF_STATUS_SUCCESS;
 	QDF_STATUS qdf_status;
 	QDF_STATUS qdf_status;