summaryrefslogtreecommitdiff
path: root/net/bluetooth/msft.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-12-01 21:55:03 +0300
committerMarcel Holtmann <marcel@holtmann.org>2021-12-07 19:05:50 +0300
commit3e54c5890c87a30b1019a3de9dab968ff2b21e06 (patch)
tree13c7f1dec4fcb95bdc55442920232a66f48c3e05 /net/bluetooth/msft.c
parenta3679649a19179813c3853b8bb397a801d9dd253 (diff)
downloadlinux-3e54c5890c87a30b1019a3de9dab968ff2b21e06.tar.xz
Bluetooth: hci_event: Use of a function table to handle HCI events
This change the use of switch statement to a function table which is easier to extend and can include min/max length of each HCI event. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/msft.c')
-rw-r--r--net/bluetooth/msft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/msft.c b/net/bluetooth/msft.c
index 1122097e1e49..6a943634b31a 100644
--- a/net/bluetooth/msft.c
+++ b/net/bluetooth/msft.c
@@ -590,7 +590,7 @@ void msft_unregister(struct hci_dev *hdev)
kfree(msft);
}
-void msft_vendor_evt(struct hci_dev *hdev, struct sk_buff *skb)
+void msft_vendor_evt(struct hci_dev *hdev, void *data, struct sk_buff *skb)
{
struct msft_data *msft = hdev->msft_data;
u8 event;