Procházet zdrojové kódy

qcacld-3.0: Rename struct sSapContext

The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename struct sSapContext to align with the
Coding Style. The associated tSapContext and ptSapContext typedefs
will be cleaned up as a subquent effort.

Change-Id: I83962e1c574491039597559fb8b16f3339d41fbd
CRs-Fixed: 2109959
Jeff Johnson před 7 roky
rodič
revize
d0337e0f44
2 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. 1 1
      core/sap/src/sap_api_link_cntl.c
  2. 4 4
      core/sap/src/sap_internal.h

+ 1 - 1
core/sap/src/sap_api_link_cntl.c

@@ -287,7 +287,7 @@ void sap_config_acs_result(tHalHandle hal, ptSapContext sap_ctx,
  */
 static QDF_STATUS sap_hdd_signal_event_handler(void *ctx)
 {
-	ptSapContext sap_ctx = (struct sSapContext *)ctx;
+	ptSapContext sap_ctx = ctx;
 	QDF_STATUS status;
 	if (NULL == sap_ctx) {
 		QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,

+ 4 - 4
core/sap/src/sap_internal.h

@@ -81,8 +81,6 @@ extern "C" {
 /*----------------------------------------------------------------------------
  *  Typedefs
  * -------------------------------------------------------------------------*/
-typedef struct sSapContext tSapContext;
-/* tSapContext, *ptSapContext; */
 /*----------------------------------------------------------------------------
  *  Type Declarations - For internal SAP context information
  * -------------------------------------------------------------------------*/
@@ -136,7 +134,7 @@ struct sap_avoid_channels_info {
 };
 #endif /* FEATURE_AP_MCC_CH_AVOIDANCE */
 
-typedef struct sSapContext {
+struct sap_context {
 
 	qdf_mutex_t SapGlobalLock;
 
@@ -275,7 +273,9 @@ typedef struct sSapContext {
 	uint8_t sap_acs_pre_start_bss;
 	uint8_t sap_sta_id;
 	bool dfs_cac_offload;
-} *ptSapContext;
+};
+typedef struct sap_context *ptSapContext;
+typedef struct sap_context tSapContext;
 
 /*----------------------------------------------------------------------------
  *  External declarations for global context