]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_event: Use of a function table to handle LE subevents
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 1 Dec 2021 18:55:04 +0000 (10:55 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Dec 2021 16:05:50 +0000 (17:05 +0100)
commitccda376c29391f14cc310bb0ef660d0256a2fe32
tree961dc68633da4918d079ef8968d138518176418a
parent41371224479c01e51a8d2cb5f1edda05f1b12779
Bluetooth: hci_event: Use of a function table to handle LE subevents

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

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