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

qcacld-3.0: Rename pMac in misc MAC files

Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged." One identifier
used extensively throughout the driver that violates both of these
tenants is "pMac." In order to be compliant with the Linux coding
style there is a campaign to rename all instances of this identifier.

For this change rename all instances of "pMac" to "mac" in:
ani_global.h
mac_trace.h

Change-Id: I4585dbda350e5e8da3970266b3809edec82c8973
CRs-Fixed: 2355462
Jeff Johnson 6 роки тому
батько
коміт
1fb8d88e99
2 змінених файлів з 4 додано та 4 видалено
  1. 2 2
      core/mac/inc/ani_global.h
  2. 2 2
      core/mac/inc/mac_trace.h

+ 2 - 2
core/mac/inc/ani_global.h

@@ -79,7 +79,7 @@ static inline mac_handle_t MAC_HANDLE(tpAniSirGlobal mac)
 	return (mac_handle_t)mac;
 }
 
-#define ANI_DRIVER_TYPE(pMac)     (((tpAniSirGlobal)(pMac))->gDriverType)
+#define ANI_DRIVER_TYPE(mac)     (((tpAniSirGlobal)(mac))->gDriverType)
 
 /* ------------------------------------------------------------------- */
 /* Bss Qos Caps bit map definition */
@@ -248,7 +248,7 @@ enum wifi_logging_ring_id {
 
 /* ------------------------------------------------------------------- */
 /* Change channel generic scheme */
-typedef void (*CHANGE_CHANNEL_CALLBACK)(tpAniSirGlobal pMac, QDF_STATUS status,
+typedef void (*CHANGE_CHANNEL_CALLBACK)(tpAniSirGlobal mac, QDF_STATUS status,
 					uint32_t *data,
 					struct pe_session *psessionEntry);
 

+ 2 - 2
core/mac/inc/mac_trace.h

@@ -39,9 +39,9 @@
 #define eLOG_NODROP_MISSED_BEACON_SCENARIO 0
 #define eLOG_PROC_DEAUTH_FRAME_SCENARIO 1
 
-void mac_trace(tpAniSirGlobal pMac, uint8_t code, uint16_t session,
+void mac_trace(tpAniSirGlobal mac, uint8_t code, uint16_t session,
 	       uint32_t data);
-void mac_trace_new(tpAniSirGlobal pMac, uint8_t module, uint8_t code,
+void mac_trace_new(tpAniSirGlobal mac, uint8_t module, uint8_t code,
 		   uint16_t session, uint32_t data);
 uint8_t *mac_trace_get_cfg_msg_string(uint16_t cfgMsg);
 uint8_t *mac_trace_get_lim_msg_string(uint16_t limMsg);