]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Move force_bredr_smp debugfs into hci_debugfs_create_bredr
authorClaire Chang <tientzu@chromium.org>
Tue, 29 Sep 2020 08:03:24 +0000 (16:03 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 9 Nov 2020 12:52:55 +0000 (13:52 +0100)
commit90cf4427608c5f38bf23f5a4fea446d570a1e0da
tree87edce09a832b63ac55bad2b490712ad8bd049ef
parent309fed3950650720304cd9f0de6e4d2075778b9e
Bluetooth: Move force_bredr_smp debugfs into hci_debugfs_create_bredr

Avoid multiple attempts to create the debugfs entry, force_bredr_smp,
by moving it from the SMP registration to the BR/EDR controller init
section. hci_debugfs_create_bredr is only called when HCI_SETUP and
HCI_CONFIG is not set.

Signed-off-by: Claire Chang <tientzu@chromium.org>
Reviewed-by: Alain Michaud <alainm@chromium.org>
Reviewed-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_debugfs.c
net/bluetooth/smp.c
net/bluetooth/smp.h