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

Bluetooth: Fix spelling mistakes

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>

authored by

Yang Li and committed by
Luiz Augusto von Dentz
be31d11e b2a5f2e1

+13 -13
+1 -1
include/net/bluetooth/hci.h
··· 2837 2837 } __packed; 2838 2838 2839 2839 #define HCI_EVT_LE_BIG_SYNC_ESTABLISHED 0x1d 2840 - struct hci_evt_le_big_sync_estabilished { 2840 + struct hci_evt_le_big_sync_established { 2841 2841 __u8 status; 2842 2842 __u8 handle; 2843 2843 __u8 latency[3];
+8 -8
net/bluetooth/hci_event.c
··· 6350 6350 return hci_send_cmd(hdev, HCI_OP_LE_PA_TERM_SYNC, sizeof(cp), &cp); 6351 6351 } 6352 6352 6353 - static void hci_le_pa_sync_estabilished_evt(struct hci_dev *hdev, void *data, 6354 - struct sk_buff *skb) 6353 + static void hci_le_pa_sync_established_evt(struct hci_dev *hdev, void *data, 6354 + struct sk_buff *skb) 6355 6355 { 6356 6356 struct hci_ev_le_pa_sync_established *ev = data; 6357 6357 int mask = hdev->link_mode; ··· 6681 6681 hci_dev_unlock(hdev); 6682 6682 } 6683 6683 6684 - static void hci_le_cis_estabilished_evt(struct hci_dev *hdev, void *data, 6685 - struct sk_buff *skb) 6684 + static void hci_le_cis_established_evt(struct hci_dev *hdev, void *data, 6685 + struct sk_buff *skb) 6686 6686 { 6687 6687 struct hci_evt_le_cis_established *ev = data; 6688 6688 struct hci_conn *conn; ··· 6910 6910 static void hci_le_big_sync_established_evt(struct hci_dev *hdev, void *data, 6911 6911 struct sk_buff *skb) 6912 6912 { 6913 - struct hci_evt_le_big_sync_estabilished *ev = data; 6913 + struct hci_evt_le_big_sync_established *ev = data; 6914 6914 struct hci_conn *bis, *conn; 6915 6915 int i; 6916 6916 ··· 7121 7121 HCI_MAX_EVENT_SIZE), 7122 7122 /* [0x0e = HCI_EV_LE_PA_SYNC_ESTABLISHED] */ 7123 7123 HCI_LE_EV(HCI_EV_LE_PA_SYNC_ESTABLISHED, 7124 - hci_le_pa_sync_estabilished_evt, 7124 + hci_le_pa_sync_established_evt, 7125 7125 sizeof(struct hci_ev_le_pa_sync_established)), 7126 7126 /* [0x0f = HCI_EV_LE_PER_ADV_REPORT] */ 7127 7127 HCI_LE_EV_VL(HCI_EV_LE_PER_ADV_REPORT, ··· 7132 7132 HCI_LE_EV(HCI_EV_LE_EXT_ADV_SET_TERM, hci_le_ext_adv_term_evt, 7133 7133 sizeof(struct hci_evt_le_ext_adv_set_term)), 7134 7134 /* [0x19 = HCI_EVT_LE_CIS_ESTABLISHED] */ 7135 - HCI_LE_EV(HCI_EVT_LE_CIS_ESTABLISHED, hci_le_cis_estabilished_evt, 7135 + HCI_LE_EV(HCI_EVT_LE_CIS_ESTABLISHED, hci_le_cis_established_evt, 7136 7136 sizeof(struct hci_evt_le_cis_established)), 7137 7137 /* [0x1a = HCI_EVT_LE_CIS_REQ] */ 7138 7138 HCI_LE_EV(HCI_EVT_LE_CIS_REQ, hci_le_cis_req_evt, ··· 7145 7145 /* [0x1d = HCI_EV_LE_BIG_SYNC_ESTABLISHED] */ 7146 7146 HCI_LE_EV_VL(HCI_EVT_LE_BIG_SYNC_ESTABLISHED, 7147 7147 hci_le_big_sync_established_evt, 7148 - sizeof(struct hci_evt_le_big_sync_estabilished), 7148 + sizeof(struct hci_evt_le_big_sync_established), 7149 7149 HCI_MAX_EVENT_SIZE), 7150 7150 /* [0x1e = HCI_EVT_LE_BIG_SYNC_LOST] */ 7151 7151 HCI_LE_EV_VL(HCI_EVT_LE_BIG_SYNC_LOST,
+4 -4
net/bluetooth/iso.c
··· 1891 1891 1892 1892 static bool iso_match_big(struct sock *sk, void *data) 1893 1893 { 1894 - struct hci_evt_le_big_sync_estabilished *ev = data; 1894 + struct hci_evt_le_big_sync_established *ev = data; 1895 1895 1896 1896 return ev->handle == iso_pi(sk)->qos.bcast.big; 1897 1897 } ··· 1912 1912 { 1913 1913 struct sock *parent = NULL; 1914 1914 struct sock *sk = conn->sk; 1915 - struct hci_ev_le_big_sync_estabilished *ev = NULL; 1915 + struct hci_ev_le_big_sync_established *ev = NULL; 1916 1916 struct hci_ev_le_pa_sync_established *ev2 = NULL; 1917 1917 struct hci_ev_le_per_adv_report *ev3 = NULL; 1918 1918 struct hci_conn *hcon; ··· 2023 2023 hci_conn_hold(hcon); 2024 2024 iso_chan_add(conn, sk, parent); 2025 2025 2026 - if ((ev && ((struct hci_evt_le_big_sync_estabilished *)ev)->status) || 2026 + if ((ev && ((struct hci_evt_le_big_sync_established *)ev)->status) || 2027 2027 (ev2 && ev2->status)) { 2028 2028 /* Trigger error signal on child socket */ 2029 2029 sk->sk_err = ECONNREFUSED; ··· 2082 2082 * proceed to establishing a BIG sync: 2083 2083 * 2084 2084 * 1. HCI_EV_LE_PA_SYNC_ESTABLISHED: The socket may specify a specific 2085 - * SID to listen to and once sync is estabilished its handle needs to 2085 + * SID to listen to and once sync is established its handle needs to 2086 2086 * be stored in iso_pi(sk)->sync_handle so it can be matched once 2087 2087 * receiving the BIG Info. 2088 2088 * 2. HCI_EVT_LE_BIG_INFO_ADV_REPORT: When connect_ind is triggered by a