Bluetooth: hci_event: Use of a function table to handle Command Complete
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 1 Dec 2021 18:55:05 +0000 (10:55 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Dec 2021 16:05:50 +0000 (17:05 +0100)
commitc8992cffbe7411c6da4c4416d5eecfc6b78e0fec
tree1756155d501e81cbb7ad84078c333342ab97483a
parent95118dd4edfec950898a00180c6f998df0a6406d
Bluetooth: hci_event: Use of a function table to handle Command Complete

This change the use of switch statement to a function table which is
easier to extend and can include min/max length of each command.

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