]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Bluetooth: Fix spelling mistakes
authorYang Li <yang.li@amlogic.com>
Tue, 1 Jul 2025 08:47:26 +0000 (16:47 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 23 Jul 2025 14:27:33 +0000 (10:27 -0400)
Correct the misspelling of “estabilished” in the code.

Signed-off-by: Yang Li <yang.li@amlogic.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci.h
net/bluetooth/hci_event.c
net/bluetooth/iso.c

index 6213012610d7a40d46dcd33b5417620b2b2551da..94f365b751664a7095ccc0beaf9deb0c804d475e 100644 (file)
@@ -2837,7 +2837,7 @@ struct hci_evt_le_create_big_complete {
 } __packed;
 
 #define HCI_EVT_LE_BIG_SYNC_ESTABLISHED 0x1d
-struct hci_evt_le_big_sync_estabilished {
+struct hci_evt_le_big_sync_established {
        __u8    status;
        __u8    handle;
        __u8    latency[3];
index fca58984ee4e7a518c95091360ce586dd3f87152..d44463e6519470f3c3e52821840a7b44b27c50b5 100644 (file)
@@ -6350,8 +6350,8 @@ static int hci_le_pa_term_sync(struct hci_dev *hdev, __le16 handle)
        return hci_send_cmd(hdev, HCI_OP_LE_PA_TERM_SYNC, sizeof(cp), &cp);
 }
 
-static void hci_le_pa_sync_estabilished_evt(struct hci_dev *hdev, void *data,
-                                           struct sk_buff *skb)
+static void hci_le_pa_sync_established_evt(struct hci_dev *hdev, void *data,
+                                          struct sk_buff *skb)
 {
        struct hci_ev_le_pa_sync_established *ev = data;
        int mask = hdev->link_mode;
@@ -6681,8 +6681,8 @@ unlock:
        hci_dev_unlock(hdev);
 }
 
-static void hci_le_cis_estabilished_evt(struct hci_dev *hdev, void *data,
-                                       struct sk_buff *skb)
+static void hci_le_cis_established_evt(struct hci_dev *hdev, void *data,
+                                      struct sk_buff *skb)
 {
        struct hci_evt_le_cis_established *ev = data;
        struct hci_conn *conn;
@@ -6910,7 +6910,7 @@ static void hci_le_create_big_complete_evt(struct hci_dev *hdev, void *data,
 static void hci_le_big_sync_established_evt(struct hci_dev *hdev, void *data,
                                            struct sk_buff *skb)
 {
-       struct hci_evt_le_big_sync_estabilished *ev = data;
+       struct hci_evt_le_big_sync_established *ev = data;
        struct hci_conn *bis, *conn;
        int i;
 
@@ -7121,7 +7121,7 @@ static const struct hci_le_ev {
                     HCI_MAX_EVENT_SIZE),
        /* [0x0e = HCI_EV_LE_PA_SYNC_ESTABLISHED] */
        HCI_LE_EV(HCI_EV_LE_PA_SYNC_ESTABLISHED,
-                 hci_le_pa_sync_estabilished_evt,
+                 hci_le_pa_sync_established_evt,
                  sizeof(struct hci_ev_le_pa_sync_established)),
        /* [0x0f = HCI_EV_LE_PER_ADV_REPORT] */
        HCI_LE_EV_VL(HCI_EV_LE_PER_ADV_REPORT,
@@ -7132,7 +7132,7 @@ static const struct hci_le_ev {
        HCI_LE_EV(HCI_EV_LE_EXT_ADV_SET_TERM, hci_le_ext_adv_term_evt,
                  sizeof(struct hci_evt_le_ext_adv_set_term)),
        /* [0x19 = HCI_EVT_LE_CIS_ESTABLISHED] */
-       HCI_LE_EV(HCI_EVT_LE_CIS_ESTABLISHED, hci_le_cis_estabilished_evt,
+       HCI_LE_EV(HCI_EVT_LE_CIS_ESTABLISHED, hci_le_cis_established_evt,
                  sizeof(struct hci_evt_le_cis_established)),
        /* [0x1a = HCI_EVT_LE_CIS_REQ] */
        HCI_LE_EV(HCI_EVT_LE_CIS_REQ, hci_le_cis_req_evt,
@@ -7145,7 +7145,7 @@ static const struct hci_le_ev {
        /* [0x1d = HCI_EV_LE_BIG_SYNC_ESTABLISHED] */
        HCI_LE_EV_VL(HCI_EVT_LE_BIG_SYNC_ESTABLISHED,
                     hci_le_big_sync_established_evt,
-                    sizeof(struct hci_evt_le_big_sync_estabilished),
+                    sizeof(struct hci_evt_le_big_sync_established),
                     HCI_MAX_EVENT_SIZE),
        /* [0x1e = HCI_EVT_LE_BIG_SYNC_LOST] */
        HCI_LE_EV_VL(HCI_EVT_LE_BIG_SYNC_LOST,
index 34e89bb5f3841b67c753a07ec12fe1c5bdd6f646..5e752950e266ecee6ae5cf23542542ca13dc6e6b 100644 (file)
@@ -1891,7 +1891,7 @@ static void iso_sock_ready(struct sock *sk)
 
 static bool iso_match_big(struct sock *sk, void *data)
 {
-       struct hci_evt_le_big_sync_estabilished *ev = data;
+       struct hci_evt_le_big_sync_established *ev = data;
 
        return ev->handle == iso_pi(sk)->qos.bcast.big;
 }
@@ -1912,7 +1912,7 @@ static void iso_conn_ready(struct iso_conn *conn)
 {
        struct sock *parent = NULL;
        struct sock *sk = conn->sk;
-       struct hci_ev_le_big_sync_estabilished *ev = NULL;
+       struct hci_ev_le_big_sync_established *ev = NULL;
        struct hci_ev_le_pa_sync_established *ev2 = NULL;
        struct hci_ev_le_per_adv_report *ev3 = NULL;
        struct hci_conn *hcon;
@@ -2023,7 +2023,7 @@ static void iso_conn_ready(struct iso_conn *conn)
                hci_conn_hold(hcon);
                iso_chan_add(conn, sk, parent);
 
-               if ((ev && ((struct hci_evt_le_big_sync_estabilished *)ev)->status) ||
+               if ((ev && ((struct hci_evt_le_big_sync_established *)ev)->status) ||
                    (ev2 && ev2->status)) {
                        /* Trigger error signal on child socket */
                        sk->sk_err = ECONNREFUSED;
@@ -2082,7 +2082,7 @@ int iso_connect_ind(struct hci_dev *hdev, bdaddr_t *bdaddr, __u8 *flags)
         * proceed to establishing a BIG sync:
         *
         * 1. HCI_EV_LE_PA_SYNC_ESTABLISHED: The socket may specify a specific
-        * SID to listen to and once sync is estabilished its handle needs to
+        * SID to listen to and once sync is established its handle needs to
         * be stored in iso_pi(sk)->sync_handle so it can be matched once
         * receiving the BIG Info.
         * 2. HCI_EVT_LE_BIG_INFO_ADV_REPORT: When connect_ind is triggered by a