qcacld-3.0: Replace hdd_context_t in wlan_hdd_object_manager.[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: I05332a554afe81f6b5f83a3541a312bfbdc2ace9 CRs-Fixed: 2100177
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
#define LOW_5GHZ_FREQ 4912
|
||||
#define HIGH_5GHZ_FREQ 6100
|
||||
|
||||
static void hdd_init_pdev_os_priv(hdd_context_t *hdd_ctx,
|
||||
static void hdd_init_pdev_os_priv(struct hdd_context *hdd_ctx,
|
||||
struct pdev_osif_priv *os_priv)
|
||||
{
|
||||
/* Initialize the OS private structure*/
|
||||
@@ -46,7 +46,7 @@ static void hdd_init_pdev_os_priv(hdd_context_t *hdd_ctx,
|
||||
wlan_cfg80211_scan_priv_init(hdd_ctx->hdd_pdev);
|
||||
}
|
||||
|
||||
static void hdd_deinit_pdev_os_priv(hdd_context_t *hdd_ctx)
|
||||
static void hdd_deinit_pdev_os_priv(struct hdd_context *hdd_ctx)
|
||||
{
|
||||
wlan_cfg80211_scan_priv_deinit(hdd_ctx->hdd_pdev);
|
||||
}
|
||||
@@ -74,7 +74,7 @@ static void hdd_init_psoc_qdf_ctx(struct wlan_objmgr_psoc *psoc)
|
||||
wlan_psoc_set_qdf_dev(psoc, qdf_ctx);
|
||||
}
|
||||
|
||||
int hdd_objmgr_create_and_store_psoc(hdd_context_t *hdd_ctx, uint8_t psoc_id)
|
||||
int hdd_objmgr_create_and_store_psoc(struct hdd_context *hdd_ctx, uint8_t psoc_id)
|
||||
{
|
||||
struct wlan_objmgr_psoc *psoc;
|
||||
|
||||
@@ -88,7 +88,7 @@ int hdd_objmgr_create_and_store_psoc(hdd_context_t *hdd_ctx, uint8_t psoc_id)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int hdd_objmgr_release_and_destroy_psoc(hdd_context_t *hdd_ctx)
|
||||
int hdd_objmgr_release_and_destroy_psoc(struct hdd_context *hdd_ctx)
|
||||
{
|
||||
struct wlan_objmgr_psoc *psoc = hdd_ctx->hdd_psoc;
|
||||
|
||||
@@ -101,7 +101,7 @@ int hdd_objmgr_release_and_destroy_psoc(hdd_context_t *hdd_ctx)
|
||||
return qdf_status_to_os_return(wlan_objmgr_psoc_obj_delete(psoc));
|
||||
}
|
||||
|
||||
int hdd_objmgr_create_and_store_pdev(hdd_context_t *hdd_ctx)
|
||||
int hdd_objmgr_create_and_store_pdev(struct hdd_context *hdd_ctx)
|
||||
{
|
||||
struct wlan_objmgr_psoc *psoc = hdd_ctx->hdd_psoc;
|
||||
struct wlan_objmgr_pdev *pdev;
|
||||
@@ -141,7 +141,7 @@ int hdd_objmgr_create_and_store_pdev(hdd_context_t *hdd_ctx)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int hdd_objmgr_release_and_destroy_pdev(hdd_context_t *hdd_ctx)
|
||||
int hdd_objmgr_release_and_destroy_pdev(struct hdd_context *hdd_ctx)
|
||||
{
|
||||
struct wlan_objmgr_pdev *pdev = hdd_ctx->hdd_pdev;
|
||||
struct pdev_osif_priv *osif_priv;
|
||||
|
@@ -73,7 +73,7 @@
|
||||
*
|
||||
* Return: 0 for success, negative error code for failure
|
||||
*/
|
||||
int hdd_objmgr_create_and_store_psoc(hdd_context_t *hdd_ctx, uint8_t psoc_id);
|
||||
int hdd_objmgr_create_and_store_psoc(struct hdd_context *hdd_ctx, uint8_t psoc_id);
|
||||
|
||||
/**
|
||||
* hdd_objmgr_release_and_destroy_psoc() - Deletes the psoc object
|
||||
@@ -83,7 +83,7 @@ int hdd_objmgr_create_and_store_psoc(hdd_context_t *hdd_ctx, uint8_t psoc_id);
|
||||
*
|
||||
* Return: 0 for success, negative error code for failure
|
||||
*/
|
||||
int hdd_objmgr_release_and_destroy_psoc(hdd_context_t *hdd_ctx);
|
||||
int hdd_objmgr_release_and_destroy_psoc(struct hdd_context *hdd_ctx);
|
||||
|
||||
/**
|
||||
* hdd_objmgr_create_and_store_pdev() - Create pdev and store in hdd context
|
||||
@@ -93,7 +93,7 @@ int hdd_objmgr_release_and_destroy_psoc(hdd_context_t *hdd_ctx);
|
||||
*
|
||||
* Return: 0 for success, negative error code for failure
|
||||
*/
|
||||
int hdd_objmgr_create_and_store_pdev(hdd_context_t *hdd_ctx);
|
||||
int hdd_objmgr_create_and_store_pdev(struct hdd_context *hdd_ctx);
|
||||
|
||||
/**
|
||||
* hdd_objmgr_release_and_destroy_pdev() - Deletes the pdev object
|
||||
@@ -103,7 +103,7 @@ int hdd_objmgr_create_and_store_pdev(hdd_context_t *hdd_ctx);
|
||||
*
|
||||
* Return: 0 for success, negative error code for failure
|
||||
*/
|
||||
int hdd_objmgr_release_and_destroy_pdev(hdd_context_t *hdd_ctx);
|
||||
int hdd_objmgr_release_and_destroy_pdev(struct hdd_context *hdd_ctx);
|
||||
|
||||
/**
|
||||
* hdd_objmgr_create_and_store_vdev() - Create vdev and store in hdd adapter
|
||||
|
Viittaa uudesa ongelmassa
Block a user