summaryrefslogtreecommitdiff
path: root/tests/bluetooth/test_bluetooth/src
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2016-10-27 16:55:01 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2016-10-28 08:09:08 +0300
commit6989bf88e1da18e02adb2f6a431a5a175f02bb00 (patch)
treef44006f6af63a16d330789e09d0524d14caca050 /tests/bluetooth/test_bluetooth/src
parentd1fe8e0189daa5644bd347f6e65d7011078d9135 (diff)
Bluetooth: Rename bt_driver to bt_hci_driver
The bt_driver API was created when Zephyr only had a Bluetooth host stack, but no controller-side functionality. The only "driver" that was needed for the host was the HCI driver, and hence "HCI" was omitted from the name. With support both for host and controller Zephyr will be getting more Bluetooth driver types, in particular radio drivers. To prepare for this, move all HCI drivers to drivers/bluetooth/hci/ and rename the bt_driver API bt_hci_driver. Change-Id: I82829da80aa61f26c2bb2005380f1e88d069ac7d Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'tests/bluetooth/test_bluetooth/src')
-rw-r--r--tests/bluetooth/test_bluetooth/src/bluetooth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/bluetooth/test_bluetooth/src/bluetooth.c b/tests/bluetooth/test_bluetooth/src/bluetooth.c
index ce2cb9c16..f214a2a15 100644
--- a/tests/bluetooth/test_bluetooth/src/bluetooth.c
+++ b/tests/bluetooth/test_bluetooth/src/bluetooth.c
@@ -22,7 +22,7 @@
#include <tc_util.h>
#include <bluetooth/bluetooth.h>
-#include <bluetooth/driver.h>
+#include <bluetooth/hci_driver.h>
#define EXPECTED_ERROR -ENOSYS
@@ -39,16 +39,16 @@ static int driver_send(struct net_buf *buf)
return 0;
}
-static struct bt_driver drv = {
+static struct bt_hci_driver drv = {
.name = "test",
- .bus = BT_DRIVER_BUS_VIRTUAL,
+ .bus = BT_HCI_DRIVER_BUS_VIRTUAL,
.open = driver_open,
.send = driver_send,
};
static void driver_init(void)
{
- bt_driver_register(&drv);
+ bt_hci_driver_register(&drv);
}
void main(void)