Bluetooth: refactor set_exp_feature with a feature table
authorJoseph Hwang <josephsih@chromium.org>
Sun, 15 Aug 2021 12:17:15 +0000 (20:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:30 +0000 (11:03 +0100)
commit749fc99daa1300d79d6f7d32467aca301dc5cf39
tree278857f0823bfa8f64198c0c127e0e2b321919f8
parentd3f45f4ee17f72cea98b433c952c418810b47c4d
Bluetooth: refactor set_exp_feature with a feature table

[ Upstream commit 93fb70bc112e922def6e50b37e20ccfce0c67c0a ]

This patch refactors the set_exp_feature with a feature table
consisting of UUIDs and the corresponding callback functions.
In this way, a new experimental feature setting function can be
simply added with its UUID and callback function.

Signed-off-by: Joseph Hwang <josephsih@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/mgmt.c