Переглянути джерело

qcacld-3.0: Change cds_get_global_context() return type

cds_get_global_context() is the only remaining API which uses
the v_CONTEXT_t typedef. It was always strange to have an
abstraction for (void *) since that is an integral part of C99
and hence does not require abstraction, so replace the return
type of cds_get_global_context() from v_CONTEXT_t to void *.

Change-Id: I836994bf7405db54eea333bbb29785e606fb0196
CRs-Fixed: 2117092
Jeff Johnson 7 роки тому
батько
коміт
31a67585b7
2 змінених файлів з 2 додано та 2 видалено
  1. 1 1
      core/cds/inc/cds_api.h
  2. 1 1
      core/cds/src/cds_api.c

+ 1 - 1
core/cds/inc/cds_api.h

@@ -335,7 +335,7 @@ void *cds_get_context(QDF_MODULE_ID moduleId);
 
 uint8_t cds_get_datapath_handles(void **soc, struct cdp_pdev **pdev,
 			 struct cdp_vdev **vdev, uint8_t sessionId);
-v_CONTEXT_t cds_get_global_context(void);
+void *cds_get_global_context(void);
 
 QDF_STATUS cds_alloc_context(QDF_MODULE_ID moduleID, void **ppModuleContext,
 			     uint32_t size);

+ 1 - 1
core/cds/src/cds_api.c

@@ -1272,7 +1272,7 @@ void *cds_get_context(QDF_MODULE_ID moduleId)
  * Return: pointer to the CDS global context, NULL if the function is
  *	   unable to retreive the CDS context.
  */
-v_CONTEXT_t cds_get_global_context(void)
+void *cds_get_global_context(void)
 {
 	if (gp_cds_context == NULL) {
 		/*