Bläddra i källkod

qcacld-3.0: Rename hdd_adapter linkStatus field

Per the Linux coding style "mixed-case names are frowned upon" so
rename field linkStatus in struct hdd_adapter.

Change-Id: I842b4caae5f0c8fef90d9a6971cce2416983dc6f
CRs-Fixed: 2135915
Jeff Johnson 7 år sedan
förälder
incheckning
bd4c4f029b
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. 1 1
      core/hdd/inc/wlan_hdd_main.h
  2. 2 2
      core/hdd/src/wlan_hdd_ioctl.c

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

@@ -1176,7 +1176,7 @@ struct hdd_adapter {
 #ifdef WLAN_FEATURE_LINK_LAYER_STATS
 	bool is_link_layer_stats_set;
 #endif
-	uint8_t linkStatus;
+	uint8_t link_status;
 
 	/* variable for temperature in Celsius */
 	int temperature;

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

@@ -2433,7 +2433,7 @@ static int wlan_hdd_get_link_status(struct hdd_adapter *adapter)
 		} else {
 			/* update the adapter with the fresh results */
 			priv = hdd_request_priv(request);
-			adapter->linkStatus = priv->link_status;
+			adapter->link_status = priv->link_status;
 		}
 	}
 
@@ -2445,7 +2445,7 @@ static int wlan_hdd_get_link_status(struct hdd_adapter *adapter)
 	hdd_request_put(request);
 
 	/* either callback updated adapter stats or it has cached data */
-	return adapter->linkStatus;
+	return adapter->link_status;
 }
 
 static void hdd_tx_fail_ind_callback(uint8_t *MacAddr, uint8_t seqNo)