Browse Source

qcacld-3.0: Rename HDD variable pTxPower

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

Change-Id: Iff5671598d611a1d25685a2ef916141413e731e4
CRs-Fixed: 2405766
Jeff Johnson 6 years ago
parent
commit
93f47cf5a5
1 changed files with 5 additions and 5 deletions
  1. 5 5
      core/hdd/src/wlan_hdd_ioctl.c

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

@@ -2083,7 +2083,7 @@ static int hdd_set_app_type2_parser(struct hdd_adapter *adapter,
 /**
  * hdd_parse_setmaxtxpower_command() - HDD Parse MAXTXPOWER command
  * @command: Pointer to MAXTXPOWER command
- * @pTxPower: Pointer to tx power
+ * @tx_power: Pointer to tx power
  *
  * This function parses the MAXTXPOWER command passed in the format
  * MAXTXPOWER<space>X(Tx power in dbm)
@@ -2094,12 +2094,12 @@ static int hdd_set_app_type2_parser(struct hdd_adapter *adapter,
  *
  * Return: 0 for success non-zero for failure
  */
-static int hdd_parse_setmaxtxpower_command(uint8_t *command, int *pTxPower)
+static int hdd_parse_setmaxtxpower_command(uint8_t *command, int *tx_power)
 {
 	uint8_t *in_ptr = command;
 	int tempInt;
 	int v = 0;
-	*pTxPower = 0;
+	*tx_power = 0;
 
 	in_ptr = strnchr(command, strlen(command), SPACE_ASCII_VALUE);
 	/* no argument after the command */
@@ -2122,9 +2122,9 @@ static int hdd_parse_setmaxtxpower_command(uint8_t *command, int *pTxPower)
 	if ((tempInt < HDD_MIN_TX_POWER) || (tempInt > HDD_MAX_TX_POWER))
 		return -EINVAL;
 
-	*pTxPower = tempInt;
+	*tx_power = tempInt;
 
-	hdd_debug("SETMAXTXPOWER: %d", *pTxPower);
+	hdd_debug("SETMAXTXPOWER: %d", *tx_power);
 
 	return 0;
 } /* End of hdd_parse_setmaxtxpower_command */