Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

bluetooth: Fix typos in the comments

Correctly spelled comments make it easier for the reader to understand
the code.

Fix typos:
'fragement' ==> 'fragment',
'genration' ==> 'generation',
'funciton' ==> 'function',
'Explitly' ==> 'Explicitly',
'explaination' ==> 'explanation',
'Tranlate' ==> 'Translate',
'immediatelly' ==> 'immediately',
'isntance' ==> 'instance',
'transmittion' ==> 'transmission',
'recevie' ==> 'receive',
'outselves' ==> 'ourselves',
'conrol' ==> 'control'.

Signed-off-by: Yan Zhen <yanzhen@vivo.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Yan Zhen and committed by
Luiz Augusto von Dentz
e623e2a0 d96b543c

+14 -14
+2 -2
drivers/bluetooth/btintel.c
··· 1040 1040 * as needed. 1041 1041 * 1042 1042 * Send set of commands with 4 byte alignment from the 1043 - * firmware data buffer as a single Data fragement. 1043 + * firmware data buffer as a single Data fragment. 1044 1044 */ 1045 1045 if (!(frag_len % 4)) { 1046 1046 err = btintel_secure_send(hdev, 0x01, frag_len, fw_ptr); ··· 2835 2835 case 0x12: /* ThP */ 2836 2836 case 0x13: /* HrP */ 2837 2837 case 0x14: /* CcP */ 2838 - /* All Intel new genration controllers support the Microsoft vendor 2838 + /* All Intel new generation controllers support the Microsoft vendor 2839 2839 * extension are using 0xFC1E for VsMsftOpCode. 2840 2840 */ 2841 2841 case 0x17:
+1 -1
drivers/bluetooth/btmtk.c
··· 324 324 wmt_params.data = NULL; 325 325 wmt_params.status = NULL; 326 326 327 - /* Activate funciton the firmware providing to */ 327 + /* Activate function the firmware providing to */ 328 328 err = wmt_cmd_sync(hdev, &wmt_params); 329 329 if (err < 0) { 330 330 bt_dev_err(hdev, "Failed to send wmt rst (%d)", err);
+2 -2
drivers/bluetooth/btmtksdio.c
··· 681 681 if (err < 0) 682 682 goto err_release_irq; 683 683 684 - /* Explitly set write-1-clear method */ 684 + /* Explicitly set write-1-clear method */ 685 685 val = sdio_readl(bdev->func, MTK_REG_CHCR, &err); 686 686 if (err < 0) 687 687 goto err_release_irq; ··· 1396 1396 if (pm_runtime_enabled(bdev->dev)) 1397 1397 pm_runtime_disable(bdev->dev); 1398 1398 1399 - /* As explaination in drivers/mmc/core/sdio_bus.c tells us: 1399 + /* As explanation in drivers/mmc/core/sdio_bus.c tells us: 1400 1400 * Unbound SDIO functions are always suspended. 1401 1401 * During probe, the function is set active and the usage count 1402 1402 * is incremented. If the driver supports runtime PM,
+1 -1
drivers/bluetooth/btmtkuart.c
··· 327 327 if (count <= 0) 328 328 return NULL; 329 329 330 - /* Tranlate to how much the size of data H4 can handle so far */ 330 + /* Translate to how much the size of data H4 can handle so far */ 331 331 *sz_h4 = min_t(int, count, bdev->stp_dlen); 332 332 333 333 /* Update the remaining size of STP packet */
+1 -1
drivers/bluetooth/btusb.c
··· 1068 1068 static int btusb_recv_event(struct btusb_data *data, struct sk_buff *skb) 1069 1069 { 1070 1070 if (data->intr_interval) { 1071 - /* Trigger dequeue immediatelly if an event is received */ 1071 + /* Trigger dequeue immediately if an event is received */ 1072 1072 schedule_delayed_work(&data->rx_work, 0); 1073 1073 } 1074 1074
+1 -1
drivers/bluetooth/hci_ldisc.c
··· 594 594 * Called by tty low level driver when receive data is 595 595 * available. 596 596 * 597 - * Arguments: tty pointer to tty isntance data 597 + * Arguments: tty pointer to tty instance data 598 598 * data pointer to received data 599 599 * flags pointer to flags for data 600 600 * count count of received data in bytes
+1 -1
drivers/bluetooth/hci_ll.c
··· 305 305 hci_uart_tx_wakeup(hu); 306 306 } 307 307 308 - /* Enqueue frame for transmittion (padding, crc, etc) */ 308 + /* Enqueue frame for transmission (padding, crc, etc) */ 309 309 /* may be called from two simultaneous tasklets */ 310 310 static int ll_enqueue(struct hci_uart *hu, struct sk_buff *skb) 311 311 {
+1 -1
drivers/bluetooth/hci_nokia.c
··· 501 501 return 0; 502 502 } 503 503 504 - /* Enqueue frame for transmittion (padding, crc, etc) */ 504 + /* Enqueue frame for transmission (padding, crc, etc) */ 505 505 static int nokia_enqueue(struct hci_uart *hu, struct sk_buff *skb) 506 506 { 507 507 struct nokia_bt_dev *btdev = hu->priv;
+4 -4
drivers/bluetooth/hci_qca.c
··· 873 873 hci_uart_tx_wakeup(hu); 874 874 } 875 875 876 - /* Enqueue frame for transmittion (padding, crc, etc) may be called from 876 + /* Enqueue frame for transmission (padding, crc, etc) may be called from 877 877 * two simultaneous tasklets. 878 878 */ 879 879 static int qca_enqueue(struct hci_uart *hu, struct sk_buff *skb) ··· 1059 1059 if (!seq_no) { 1060 1060 1061 1061 /* This is the first frame of memdump packet from 1062 - * the controller, Disable IBS to recevie dump 1062 + * the controller, Disable IBS to receive dump 1063 1063 * with out any interruption, ideally time required for 1064 1064 * the controller to send the dump is 8 seconds. let us 1065 1065 * start timer to handle this asynchronous activity. ··· 2358 2358 * Backward compatibility with old DT sources. If the 2359 2359 * node doesn't have the 'enable-gpios' property then 2360 2360 * let's use the power sequencer. Otherwise, let's 2361 - * drive everything outselves. 2361 + * drive everything ourselves. 2362 2362 */ 2363 2363 qcadev->bt_power->pwrseq = devm_pwrseq_get(&serdev->dev, 2364 2364 "bluetooth"); ··· 2530 2530 hci_dev_test_flag(hdev, HCI_SETUP)) 2531 2531 return; 2532 2532 2533 - /* The serdev must be in open state when conrol logic arrives 2533 + /* The serdev must be in open state when control logic arrives 2534 2534 * here, so also fix the use-after-free issue caused by that 2535 2535 * the serdev is flushed or wrote after it is closed. 2536 2536 */