Browse Source

qcacmn: wmi: Fix misspellings

Address the following issues in the wmi folder:
CHECK: 'addres' may be misspelled - perhaps 'address'?
CHECK: 'COMAND' may be misspelled - perhaps 'COMMAND'?
CHECK: 'defintion' may be misspelled - perhaps 'definition'?
CHECK: 'happend' may be misspelled - perhaps 'happened'?
CHECK: 'managment' may be misspelled - perhaps 'management'?
CHECK: 'messsage' may be misspelled - perhaps 'message'?
CHECK: 'overriden' may be misspelled - perhaps 'overridden'?
CHECK: 'poiter' may be misspelled - perhaps 'pointer'?
CHECK: 'refering' may be misspelled - perhaps 'referring'?
CHECK: 'refrence' may be misspelled - perhaps 'reference'?
CHECK: 'shrinked' may be misspelled - perhaps 'shrunk'?
CHECK: 'succesfully' may be misspelled - perhaps 'successfully'?
CHECK: 'succesful' may be misspelled - perhaps 'successful'?

Change-Id: Ie97e4d83cc88a2610524b38adc3474cdd31170d9
CRs-Fixed: 2241590
Jeff Johnson 7 years ago
parent
commit
da26399dfa
4 changed files with 20 additions and 20 deletions
  1. 4 4
      wmi_tlv_helper.c
  2. 2 2
      wmi_unified_api.c
  3. 6 6
      wmi_unified_non_tlv.c
  4. 8 8
      wmi_unified_tlv.c

+ 4 - 4
wmi_tlv_helper.c

@@ -827,11 +827,11 @@ wmitlv_check_and_pad_tlvs(void *os_handle, void *param_struc_ptr,
 					/* Incoming structure size is greater than expected size
 					 * then this needs shrinking for each element in the array */
 
-					/* Find amount of bytes to be shrinked for one element */
+					/* Find amount of bytes to be shrunk for one element */
 					num_padding_bytes = tlv_size_diff * -1;
 
 					/* Move subsequent elements of array up by number of bytes
-					 * to be shrinked for one element */
+					 * to be shrunk for one element */
 					tlv_buf_ptr = buf_ptr;
 					for (i = 0; i < (num_of_elems - 1); i++) {
 						src_addr =
@@ -852,7 +852,7 @@ wmitlv_check_and_pad_tlvs(void *os_handle, void *param_struc_ptr,
 							tag_struct_size;
 					}
 
-					/* Move subsequent TLVs by number of bytes to be shrinked
+					/* Move subsequent TLVs by number of bytes to be shrunk
 					 * for all elements */
 					if (param_buf_len >
 					    (buf_idx + curr_tlv_len)) {
@@ -872,7 +872,7 @@ wmitlv_check_and_pad_tlvs(void *os_handle, void *param_struc_ptr,
 					}
 
 					/* Update the number of padding bytes to total number of
-					 * bytes shrinked for all elements in the array */
+					 * bytes shrunk for all elements in the array */
 					num_padding_bytes =
 						num_padding_bytes * num_of_elems;
 

+ 2 - 2
wmi_unified_api.c

@@ -5396,7 +5396,7 @@ QDF_STATUS wmi_extract_ext_tbttoffset_num_vdevs(void *wmi_hdl, void *evt_buf,
  * wmi_extract_tbttoffset_update_params() - extract tbtt offset update param
  * @wmi_handle: wmi handle
  * @param evt_buf: pointer to event buffer
- * @param idx: Index refering to a vdev
+ * @param idx: Index referring to a vdev
  * @param tbtt_param: Pointer to tbttoffset event param
  *
  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
@@ -5417,7 +5417,7 @@ QDF_STATUS wmi_extract_tbttoffset_update_params(void *wmi_hdl, void *evt_buf,
  * wmi_extract_ext_tbttoffset_update_params() - extract tbtt offset update param
  * @wmi_handle: wmi handle
  * @param evt_buf: pointer to event buffer
- * @param idx: Index refering to a vdev
+ * @param idx: Index referring to a vdev
  * @param tbtt_param: Pointer to tbttoffset event param
  *
  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure

+ 6 - 6
wmi_unified_non_tlv.c

@@ -840,7 +840,7 @@ send_pdev_utf_cmd_non_tlv(wmi_unified_t wmi_handle,
 
 	while (param->len) {
 		if (param->len > MAX_WMI_UTF_LEN)
-			chunkLen = MAX_WMI_UTF_LEN; /* MAX messsage.. */
+			chunkLen = MAX_WMI_UTF_LEN; /* MAX message.. */
 		else
 			chunkLen = param->len;
 
@@ -939,7 +939,7 @@ send_pdev_qvit_cmd_non_tlv(wmi_unified_t wmi_handle,
 
 	while (param->len) {
 		if (param->len > MAX_WMI_QVIT_LEN)
-			chunkLen = MAX_WMI_QVIT_LEN; /* MAX messsage.. */
+			chunkLen = MAX_WMI_QVIT_LEN; /* MAX message.. */
 		else
 			chunkLen = param->len;
 
@@ -4283,7 +4283,7 @@ send_pdev_fips_cmd_non_tlv(wmi_unified_t wmi_handle,
 
 			int c;
 
-			/* Checking if kmalloc is succesful to allocate space */
+			/* Checking if kmalloc is successful to allocate space */
 			if (key_unaligned == NULL)
 				return QDF_STATUS_SUCCESS;
 			/* Checking if space is aligned */
@@ -4306,7 +4306,7 @@ send_pdev_fips_cmd_non_tlv(wmi_unified_t wmi_handle,
 			    DUMP_PREFIX_NONE,
 				16, 1, key_aligned, param->key_len, true);
 
-			/* Checking if kmalloc is succesful to allocate space */
+			/* Checking if kmalloc is successful to allocate space */
 			if (data_unaligned == NULL)
 				return QDF_STATUS_SUCCESS;
 			/* Checking of space is aligned */
@@ -6149,7 +6149,7 @@ static QDF_STATUS extract_fips_event_data_non_tlv(wmi_unified_t wmi_handle,
 		u_int8_t *data_aligned = NULL;
 		int c;
 
-		/* Checking if kmalloc does succesful allocation */
+		/* Checking if kmalloc does successful allocation */
 		if (data_unaligned == NULL)
 			return QDF_STATUS_E_FAILURE;
 
@@ -6240,7 +6240,7 @@ static QDF_STATUS extract_tbttoffset_num_vdevs_non_tlv(void *wmi_hdl,
  * extract_tbttoffset_update_params_non_tlv() - extract tbtt offset update param
  * @wmi_handle: wmi handle
  * @param evt_buf: pointer to event buffer
- * @param idx: Index refering to a vdev
+ * @param idx: Index referring to a vdev
  * @param tbtt_param: Pointer to tbttoffset event param
  *
  * Return: 0 for success or error code

+ 8 - 8
wmi_unified_tlv.c

@@ -1122,7 +1122,7 @@ send_pdev_utf_cmd_tlv(wmi_unified_t wmi_handle,
 
 	while (param->len) {
 		if (param->len > MAX_WMI_UTF_LEN)
-			chunk_len = MAX_WMI_UTF_LEN;    /* MAX messsage */
+			chunk_len = MAX_WMI_UTF_LEN;    /* MAX message */
 		else
 			chunk_len = param->len;
 
@@ -6853,7 +6853,7 @@ static QDF_STATUS send_dbs_scan_sel_params_cmd_tlv(wmi_unified_t wmi_handle,
  * list that need to be applied to the scan results to form the
  * probable candidates for roaming.
  *
- * Return: Return success upon succesfully passing the
+ * Return: Return success upon successfully passing the
  *         parameters to the firmware, otherwise failure.
  */
 static QDF_STATUS send_roam_scan_filter_cmd_tlv(wmi_unified_t wmi_handle,
@@ -13087,7 +13087,7 @@ send_pdev_qvit_cmd_tlv(wmi_unified_t wmi_handle,
 
 	while (param->len) {
 		if (param->len > MAX_WMI_QVIT_LEN)
-			chunk_len = MAX_WMI_QVIT_LEN;    /* MAX messsage */
+			chunk_len = MAX_WMI_QVIT_LEN;    /* MAX message */
 		else
 			chunk_len = param->len;
 
@@ -14025,7 +14025,7 @@ static QDF_STATUS fips_align_data_be(wmi_unified_t wmi_handle,
 	data_unaligned = qdf_mem_malloc(
 		sizeof(u_int8_t)*param->data_len + FIPS_ALIGN);
 
-	/* Checking if kmalloc is succesful to allocate space */
+	/* Checking if kmalloc is successful to allocate space */
 	if (key_unaligned == NULL)
 		return QDF_STATUS_SUCCESS;
 	/* Checking if space is aligned */
@@ -14048,7 +14048,7 @@ static QDF_STATUS fips_align_data_be(wmi_unified_t wmi_handle,
 		DUMP_PREFIX_NONE,
 		16, 1, key_aligned, param->key_len, true);
 
-	/* Checking if kmalloc is succesful to allocate space */
+	/* Checking if kmalloc is successful to allocate space */
 	if (data_unaligned == NULL)
 		return QDF_STATUS_SUCCESS;
 	/* Checking of space is aligned */
@@ -18450,7 +18450,7 @@ static QDF_STATUS extract_ext_tbttoffset_num_vdevs_tlv(void *wmi_hdl,
  * extract_tbttoffset_update_params_tlv() - extract tbtt offset param
  * @wmi_handle: wmi handle
  * @param evt_buf: pointer to event buffer
- * @param idx: Index refering to a vdev
+ * @param idx: Index referring to a vdev
  * @param tbtt_param: Pointer to tbttoffset event param
  *
  * Return: QDF_STATUS_SUCCESS for success or error code
@@ -18484,7 +18484,7 @@ static QDF_STATUS extract_tbttoffset_update_params_tlv(void *wmi_hdl,
  * extract_ext_tbttoffset_update_params_tlv() - extract ext tbtt offset param
  * @wmi_handle: wmi handle
  * @param evt_buf: pointer to event buffer
- * @param idx: Index refering to a vdev
+ * @param idx: Index referring to a vdev
  * @param tbtt_param: Pointer to tbttoffset event param
  *
  * Return: QDF_STATUS_SUCCESS for success or error code
@@ -20422,7 +20422,7 @@ static QDF_STATUS fips_conv_data_be(uint32_t data_len, uint8_t *data)
 	data_unaligned = qdf_mem_malloc(((sizeof(uint8_t) * data_len) +
 					FIPS_ALIGN));
 	/* Assigning unaligned space to copy the data */
-	/* Checking if kmalloc does succesful allocation */
+	/* Checking if kmalloc does successful allocation */
 	if (data_unaligned == NULL)
 		return QDF_STATUS_E_FAILURE;