]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 09:59:25 +0000 (10:59 +0100)
commit6925a3aadc390022627ebcfc6a83b29ba7397c16
tree17786ad3eb3ddb1d4e5eac974f0c14ec5caa3337
parent67bf0f12b20553bd1adacc6ec99874f52e9f8427
Bluetooth: refactor set_exp_feature with a feature table

BugLink: https://bugs.launchpad.net/bugs/1959376
[ 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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/bluetooth/mgmt.c