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
This commit is contained in:
Jeff Johnson
2018-06-02 21:02:02 -07:00
committed by nshrivas
parent b967d51f5f
commit 2d29212dc8
11 changed files with 27 additions and 29 deletions

View File

@@ -2245,7 +2245,7 @@ put_attr_fail:
*
* 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)
{
struct hdd_context *hdd_ctx;

View File

@@ -302,7 +302,7 @@ void wlan_hdd_cfg80211_link_layer_stats_callback(void *ctx,
*
* 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);
/**

View File

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

View File

@@ -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
* any purpose with or without fee is hereby granted, provided that the
@@ -35,7 +35,7 @@
tSirRetStatus mac_start(tHalHandle hHal, void *pHalMacStartParams);
QDF_STATUS mac_stop(tHalHandle hHal, tHalStopType stopType);
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);
#endif /* __MAC_INIT_API_H */

View File

@@ -40,20 +40,18 @@
------------------------------------------------------------------------- */
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;
/* ********************************************** *
* *

View File

@@ -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
\ memory with the global context will be allocated here.
\param tHalHandle pHalHandle
\param tHddHandle hHdd
\param hdd_handle_t hHdd
\param tHalOpenParameters* pHalOpenParams
\return tSirRetStatus
-------------------------------------------------------------*/
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;
tSirRetStatus status = eSIR_SUCCESS;

View File

@@ -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
* any purpose with or without fee is hereby granted, provided that the
@@ -48,7 +48,7 @@ typedef struct tagDblLinkList {
tListElem ListHead;
qdf_mutex_t Lock;
uint32_t Count;
tHddHandle hHdd;
hdd_handle_t hHdd;
tListFlag Flag;
/*command debugging */
uint32_t cmdTimeoutDuration; /* command timeout duration */
@@ -73,7 +73,7 @@ typedef struct tagDblLinkList {
#define csrIsListEmpty(pHead) ((pHead)->next == (pHead))
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_lock(tDblLinkList *pList);
void csr_ll_unlock(tDblLinkList *pList);

View File

@@ -970,7 +970,7 @@ QDF_STATUS sme_set_link_layer_stats_ind_cb(tHalHandle hHal,
void (*callbackRoutine)(void *callbackCtx,
int indType, void *pRsp));
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));
QDF_STATUS sme_reset_link_layer_stats_ind_cb(tHalHandle hhal);
QDF_STATUS sme_ll_stats_set_thresh(tHalHandle hal,

View File

@@ -170,7 +170,7 @@ typedef struct tagSmeStruct {
#ifdef WLAN_FEATURE_LINK_LAYER_STATS
void (*pLinkLayerStatsIndCallback)(void *callbackContext,
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);
#endif /* WLAN_FEATURE_LINK_LAYER_STATS */

View File

@@ -11915,7 +11915,7 @@ QDF_STATUS sme_set_link_layer_stats_ind_cb(tHalHandle hHal,
* Return: eHalStatus
*/
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))
{
QDF_STATUS status;

View File

@@ -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
* 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;
}
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 qdf_status;