Jelajahi Sumber

qcacld-3.0: Rename HDD variable uActionPeriod

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

Change-Id: I9aee7d6d943f687644eec10dd051f79132b919bf
CRs-Fixed: 2408055
Jeff Johnson 6 tahun lalu
induk
melakukan
3972e0d615
1 mengubah file dengan 6 tambahan dan 6 penghapusan
  1. 6 6
      core/hdd/src/wlan_hdd_ioctl.c

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

@@ -4871,7 +4871,7 @@ static int hdd_parse_setrmcactionperiod_command(uint8_t *pvalue,
 
 	*paction_period = temp_int;
 
-	hdd_debug("uActionPeriod: %d", *paction_period);
+	hdd_debug("action_period: %d", *paction_period);
 
 	return 0;
 }
@@ -5000,7 +5000,7 @@ static int drv_cmd_set_rmc_action_period(struct hdd_adapter *adapter,
 {
 	int ret = 0;
 	uint8_t *value = command;
-	uint32_t uActionPeriod = 0;
+	uint32_t action_period = 0;
 	int status;
 	mac_handle_t mac_handle;
 
@@ -5014,20 +5014,20 @@ static int drv_cmd_set_rmc_action_period(struct hdd_adapter *adapter,
 		goto exit;
 	}
 
-	status = hdd_parse_setrmcactionperiod_command(value, &uActionPeriod);
+	status = hdd_parse_setrmcactionperiod_command(value, &action_period);
 	if (status) {
 		hdd_err("Invalid SETRMCACTIONPERIOD command");
 		ret = -EINVAL;
 		goto exit;
 	}
 
-	hdd_debug("uActionPeriod %d", uActionPeriod);
+	hdd_debug("action_period %d", action_period);
 	mac_handle = hdd_ctx->mac_handle;
 
 	if (ucfg_mlme_set_rmc_action_period_freq(hdd_ctx->psoc,
-						 uActionPeriod) !=
+						 action_period) !=
 						 QDF_STATUS_SUCCESS) {
-		hdd_err("Could not set SETRMCACTIONPERIOD %d", uActionPeriod);
+		hdd_err("Could not set SETRMCACTIONPERIOD %d", action_period);
 		ret = -EINVAL;
 		goto exit;
 	}