diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-02-14 13:40:06 -0800 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-02-15 18:54:13 +0200 |
commit | 035a07d5df7003bc6954f0aa42174416b775021c (patch) | |
tree | 5ae43717e095a0ff44fcb8eea1164ee22654d8ab /net/bluetooth/hci_debugfs.h | |
parent | 18835dfa3ac526b25f74af3a61829f02fe92a317 (diff) |
Bluetooth: Provide option to enable/disable debugfs information
The Bluetooth controllers can export extensive information about
internal states via debugfs. This patch provides an option to
choose if these information are provided or not.
For backwards compatibility with existing kernel configuration,
this option defaults to yes.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_debugfs.h')
-rw-r--r-- | net/bluetooth/hci_debugfs.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/bluetooth/hci_debugfs.h b/net/bluetooth/hci_debugfs.h index fb68efe083c5..4444dc8cedc2 100644 --- a/net/bluetooth/hci_debugfs.h +++ b/net/bluetooth/hci_debugfs.h @@ -20,7 +20,29 @@ SOFTWARE IS DISCLAIMED. */ +#if IS_ENABLED(CONFIG_BT_DEBUGFS) + void hci_debugfs_create_common(struct hci_dev *hdev); void hci_debugfs_create_bredr(struct hci_dev *hdev); void hci_debugfs_create_le(struct hci_dev *hdev); void hci_debugfs_create_conn(struct hci_conn *conn); + +#else + +static inline void hci_debugfs_create_common(struct hci_dev *hdev) +{ +} + +static inline void hci_debugfs_create_bredr(struct hci_dev *hdev) +{ +} + +static inline void hci_debugfs_create_le(struct hci_dev *hdev) +{ +} + +static inline void hci_debugfs_create_conn(struct hci_conn *conn) +{ +} + +#endif |