bluetooth definition redundancy v2
Oops, bluetooth sock had its own debug feature.So here's a 3 to 1 patch.
Regards,
FabF
include/net/bluetooth/hci_core.h +5 -0
@@ -32,6 +32,11 @@#include <linux/proc_fs.h> #include <net/bluetooth/hci.h> +#ifndef CONFIG_BT_HCI_CORE_DEBUG +#undef BT_DBG +#define BT_DBG( A... ) +#endif +/* HCI upper protocols */ #define HCI_PROTO_L2CAP 0#define HCI_PROTO_SCO 1
net/bluetooth/hci_conn.c +0 -5
@@ -52,11 +52,6 @@#include <net/bluetooth/bluetooth.h> #include <net/bluetooth/hci_core.h> -#ifndef CONFIG_BT_HCI_CORE_DEBUG -#undef BT_DBG -#define BT_DBG( A... ) -#endif -void hci_acl_connect (struct hci_conn *conn) {struct hci_dev *hdev = conn->hdev;
net/bluetooth/hci_core.c +0 -5
@@ -53,11 +53,6 @@#include <net/bluetooth/bluetooth.h> #include <net/bluetooth/hci_core.h> -#ifndef CONFIG_BT_HCI_CORE_DEBUG -#undef BT_DBG -#define BT_DBG( A... ) -#endif -static void hci_cmd_task (unsigned long arg);static void hci_rx_task (unsigned long arg);static void hci_tx_task (unsigned long arg);
net/bluetooth/hci_sysfs.c +0 -5
@@ -5,11 +5,6 @@#include <net/bluetooth/bluetooth.h> #include <net/bluetooth/hci_core.h> -#ifndef CONFIG_BT_HCI_CORE_DEBUG -#undef BT_DBG -#define BT_DBG( A... ) -#endif -static ssize_t show_name (struct class_device *cdev,char *buf) {struct hci_dev *hdev =class_get_devdata (cdev);