Browse Source

qcacld-3.0: Rename struct _cds_context_type

Currently struct _cds_context_type is poorly named and poorly defined.
Rename it to struct cds_context to better align with expected naming,
and define it separately from the typedefs which reference it in
anticipation of removing those typedefs in the near future.

Change-Id: Icd096b7e99f13402fb7dab53493e6c55dda4d764
CRs-Fixed: 2250666
Jeff Johnson 6 years ago
parent
commit
cba3b465d2
1 changed files with 5 additions and 2 deletions
  1. 5 2
      core/cds/inc/cds_sched.h

+ 5 - 2
core/cds/inc/cds_sched.h

@@ -168,7 +168,7 @@ struct cds_log_complete {
 
 /* forward-declare hdd_context_s as it is used ina function type */
 struct hdd_context_s;
-typedef struct _cds_context_type {
+struct cds_context {
 	/* Scheduler Context */
 	cds_sched_context qdf_sched;
 
@@ -223,7 +223,10 @@ typedef struct _cds_context_type {
 	qdf_work_t cds_recovery_work;
 	qdf_workqueue_t *cds_recovery_wq;
 	enum qdf_hang_reason recovery_reason;
-} cds_context_type, *p_cds_contextType;
+};
+
+/* legacy typedefs required until all references are updated */
+typedef struct cds_context cds_context_type, *p_cds_contextType;
 
 /*---------------------------------------------------------------------------
    Function declarations and documenation