浏览代码

qcacld-3.0: Rename HDD variable pUserData

The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename HDD local variable pUserData to be
compliant.

Change-Id: Ia6e960b2666ef2dc958cdc97cef0b525cfa9e58d
CRs-Fixed: 2405754
Jeff Johnson 6 年之前
父节点
当前提交
afa022c9cd
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      core/hdd/inc/wlan_hdd_main.h
  2. 3 3
      core/hdd/src/wlan_hdd_ioctl.c
  3. 1 1
      core/sme/inc/sme_api.h

+ 1 - 1
core/hdd/inc/wlan_hdd_main.h

@@ -2736,7 +2736,7 @@ static inline void hdd_set_tso_flags(struct hdd_context *hdd_ctx,
 }
 #endif /* FEATURE_TSO */
 
-void hdd_get_ibss_peer_info_cb(void *pUserData,
+void hdd_get_ibss_peer_info_cb(void *context,
 				tSirPeerInfoRspParams *peer_info);
 
 #ifdef CONFIG_CNSS_LOGGER

+ 3 - 3
core/hdd/src/wlan_hdd_ioctl.c

@@ -242,7 +242,7 @@ static int hdd_get_tsm_stats(struct hdd_adapter *adapter,
 
 /**
  * hdd_get_ibss_peer_info_cb() - IBSS peer Info request callback
- * @UserData: Adapter private data
+ * @context: callback context (adapter supplied by caller)
  * @peer_info: Peer info response
  *
  * This is an asynchronous callback function from SME when the peer info
@@ -251,10 +251,10 @@ static int hdd_get_tsm_stats(struct hdd_adapter *adapter,
  * Return: 0 for success non-zero for failure
  */
 void
-hdd_get_ibss_peer_info_cb(void *pUserData,
+hdd_get_ibss_peer_info_cb(void *context,
 			  tSirPeerInfoRspParams *peer_info)
 {
-	struct hdd_adapter *adapter = (struct hdd_adapter *) pUserData;
+	struct hdd_adapter *adapter = context;
 	struct hdd_station_ctx *sta_ctx;
 	uint8_t i;
 

+ 1 - 1
core/sme/inc/sme_api.h

@@ -864,7 +864,7 @@ QDF_STATUS sme_send_rmc_action_period(mac_handle_t mac_handle,
 				      uint32_t sessionId);
 #endif
 QDF_STATUS sme_request_ibss_peer_info(mac_handle_t mac_handle,
-				      void *pUserData,
+				      void *cb_context,
 				      ibss_peer_info_cb peer_info_cb,
 				      bool allPeerInfoReqd,
 				      uint8_t staIdx);