Skip to content

Commit e623e2a

Browse files
Yan ZhenVudentz
authored andcommitted
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 <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent d96b543 commit e623e2a

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

drivers/bluetooth/btintel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ static int btintel_download_firmware_payload(struct hci_dev *hdev,
10401040
* as needed.
10411041
*
10421042
* 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.
10441044
*/
10451045
if (!(frag_len % 4)) {
10461046
err = btintel_secure_send(hdev, 0x01, frag_len, fw_ptr);
@@ -2835,7 +2835,7 @@ void btintel_set_msft_opcode(struct hci_dev *hdev, u8 hw_variant)
28352835
case 0x12: /* ThP */
28362836
case 0x13: /* HrP */
28372837
case 0x14: /* CcP */
2838-
/* All Intel new genration controllers support the Microsoft vendor
2838+
/* All Intel new generation controllers support the Microsoft vendor
28392839
* extension are using 0xFC1E for VsMsftOpCode.
28402840
*/
28412841
case 0x17:

drivers/bluetooth/btmtk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ int btmtk_setup_firmware(struct hci_dev *hdev, const char *fwname,
324324
wmt_params.data = NULL;
325325
wmt_params.status = NULL;
326326

327-
/* Activate funciton the firmware providing to */
327+
/* Activate function the firmware providing to */
328328
err = wmt_cmd_sync(hdev, &wmt_params);
329329
if (err < 0) {
330330
bt_dev_err(hdev, "Failed to send wmt rst (%d)", err);

drivers/bluetooth/btmtksdio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ static int btmtksdio_open(struct hci_dev *hdev)
681681
if (err < 0)
682682
goto err_release_irq;
683683

684-
/* Explitly set write-1-clear method */
684+
/* Explicitly set write-1-clear method */
685685
val = sdio_readl(bdev->func, MTK_REG_CHCR, &err);
686686
if (err < 0)
687687
goto err_release_irq;
@@ -1396,7 +1396,7 @@ static int btmtksdio_probe(struct sdio_func *func,
13961396
if (pm_runtime_enabled(bdev->dev))
13971397
pm_runtime_disable(bdev->dev);
13981398

1399-
/* As explaination in drivers/mmc/core/sdio_bus.c tells us:
1399+
/* As explanation in drivers/mmc/core/sdio_bus.c tells us:
14001400
* Unbound SDIO functions are always suspended.
14011401
* During probe, the function is set active and the usage count
14021402
* is incremented. If the driver supports runtime PM,

drivers/bluetooth/btmtkuart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ mtk_stp_split(struct btmtkuart_dev *bdev, const unsigned char *data, int count,
327327
if (count <= 0)
328328
return NULL;
329329

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 */
331331
*sz_h4 = min_t(int, count, bdev->stp_dlen);
332332

333333
/* Update the remaining size of STP packet */

drivers/bluetooth/btusb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ static inline void btusb_free_frags(struct btusb_data *data)
10681068
static int btusb_recv_event(struct btusb_data *data, struct sk_buff *skb)
10691069
{
10701070
if (data->intr_interval) {
1071-
/* Trigger dequeue immediatelly if an event is received */
1071+
/* Trigger dequeue immediately if an event is received */
10721072
schedule_delayed_work(&data->rx_work, 0);
10731073
}
10741074

drivers/bluetooth/hci_ldisc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ static void hci_uart_tty_wakeup(struct tty_struct *tty)
594594
* Called by tty low level driver when receive data is
595595
* available.
596596
*
597-
* Arguments: tty pointer to tty isntance data
597+
* Arguments: tty pointer to tty instance data
598598
* data pointer to received data
599599
* flags pointer to flags for data
600600
* count count of received data in bytes

drivers/bluetooth/hci_ll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ static void ll_device_woke_up(struct hci_uart *hu)
305305
hci_uart_tx_wakeup(hu);
306306
}
307307

308-
/* Enqueue frame for transmittion (padding, crc, etc) */
308+
/* Enqueue frame for transmission (padding, crc, etc) */
309309
/* may be called from two simultaneous tasklets */
310310
static int ll_enqueue(struct hci_uart *hu, struct sk_buff *skb)
311311
{

drivers/bluetooth/hci_nokia.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ static int nokia_close(struct hci_uart *hu)
501501
return 0;
502502
}
503503

504-
/* Enqueue frame for transmittion (padding, crc, etc) */
504+
/* Enqueue frame for transmission (padding, crc, etc) */
505505
static int nokia_enqueue(struct hci_uart *hu, struct sk_buff *skb)
506506
{
507507
struct nokia_bt_dev *btdev = hu->priv;

drivers/bluetooth/hci_qca.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ static void device_woke_up(struct hci_uart *hu)
873873
hci_uart_tx_wakeup(hu);
874874
}
875875

876-
/* Enqueue frame for transmittion (padding, crc, etc) may be called from
876+
/* Enqueue frame for transmission (padding, crc, etc) may be called from
877877
* two simultaneous tasklets.
878878
*/
879879
static int qca_enqueue(struct hci_uart *hu, struct sk_buff *skb)
@@ -1059,7 +1059,7 @@ static void qca_controller_memdump(struct work_struct *work)
10591059
if (!seq_no) {
10601060

10611061
/* 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
10631063
* with out any interruption, ideally time required for
10641064
* the controller to send the dump is 8 seconds. let us
10651065
* start timer to handle this asynchronous activity.
@@ -2358,7 +2358,7 @@ static int qca_serdev_probe(struct serdev_device *serdev)
23582358
* Backward compatibility with old DT sources. If the
23592359
* node doesn't have the 'enable-gpios' property then
23602360
* let's use the power sequencer. Otherwise, let's
2361-
* drive everything outselves.
2361+
* drive everything ourselves.
23622362
*/
23632363
qcadev->bt_power->pwrseq = devm_pwrseq_get(&serdev->dev,
23642364
"bluetooth");
@@ -2530,7 +2530,7 @@ static void qca_serdev_shutdown(struct device *dev)
25302530
hci_dev_test_flag(hdev, HCI_SETUP))
25312531
return;
25322532

2533-
/* The serdev must be in open state when conrol logic arrives
2533+
/* The serdev must be in open state when control logic arrives
25342534
* here, so also fix the use-after-free issue caused by that
25352535
* the serdev is flushed or wrote after it is closed.
25362536
*/

0 commit comments

Comments
 (0)