qcacld-3.0: Replace hdd_context_t in cds_api

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: I8404fa2fc32269a92522f6ae15f8d9d1a8aebf85
CRs-Fixed: 2100140
This commit is contained in:
Jeff Johnson 2017-08-28 10:06:53 -07:00 • committed by snandini
commit 7819caa75b

View file

@ -386,7 +386,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
struct ol_context *ol_ctx;
struct hif_opaque_softc *scn;
void *HTCHandle;
hdd_context_t *pHddCtx;
struct hdd_context *pHddCtx;
cds_context_type *cds_ctx;
QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO_HIGH,
@ -421,7 +421,7 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc)
goto err_probe_event;
}
pHddCtx = (hdd_context_t *) (gp_cds_context->pHDDContext);
pHddCtx = (struct hdd_context *) (gp_cds_context->pHDDContext);
if ((NULL == pHddCtx) || (NULL == pHddCtx->config)) {
/* Critical Error ... Cannot proceed further */
cds_err("Hdd Context is Null");
@ -1701,9 +1701,9 @@ void cds_flush_delayed_work(void *dwork)
*/
bool cds_is_packet_log_enabled(void)
{
hdd_context_t *pHddCtx;
struct hdd_context *pHddCtx;
pHddCtx = (hdd_context_t *) (gp_cds_context->pHDDContext);
pHddCtx = (struct hdd_context *) (gp_cds_context->pHDDContext);
if ((NULL == pHddCtx) || (NULL == pHddCtx->config)) {
QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_FATAL,
"%s: Hdd Context is Null", __func__);