Bluetooth: hci_event: Use of a function table to handle HCI events
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 1 Dec 2021 18:55:03 +0000 (10:55 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Dec 2021 16:05:50 +0000 (17:05 +0100)
commit3e54c5890c87a30b1019a3de9dab968ff2b21e06
tree13c7f1dec4fcb95bdc55442920232a66f48c3e05
parenta3679649a19179813c3853b8bb397a801d9dd253
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>
net/bluetooth/hci_event.c
net/bluetooth/msft.c
net/bluetooth/msft.h