drivers: bluetooth: hci: Place API into iterable section
Add wrapper DEVICE_API macro to all bt_hci_driver_api instances. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
parent
3146a5552f
commit
e9e64bab35
21 changed files with 21 additions and 21 deletions
|
@ -35,7 +35,7 @@ static int driver_send(const struct device *dev, struct net_buf *buf)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const struct bt_hci_driver_api driver_api = {
|
||||
static DEVICE_API(bt_hci, driver_api) = {
|
||||
.open = driver_open,
|
||||
.send = driver_send,
|
||||
};
|
||||
|
|
|
@ -235,7 +235,7 @@ static int driver_send(const struct device *dev, struct net_buf *buf)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const struct bt_hci_driver_api driver_api = {
|
||||
static DEVICE_API(bt_hci, driver_api) = {
|
||||
.open = driver_open,
|
||||
.send = driver_send,
|
||||
};
|
||||
|
|
|
@ -37,7 +37,7 @@ static void serial_vnd_data_callback(const struct device *dev, void *user_data);
|
|||
static int drv_send(const struct device *dev, struct net_buf *buf);
|
||||
static int drv_open(const struct device *dev, bt_hci_recv_t recv);
|
||||
|
||||
static const struct bt_hci_driver_api drv_api = {
|
||||
static DEVICE_API(bt_hci, drv_api) = {
|
||||
.open = drv_open,
|
||||
.send = drv_send,
|
||||
};
|
||||
|
|
|
@ -249,7 +249,7 @@ static int driver_send(const struct device *dev, struct net_buf *buf)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const struct bt_hci_driver_api driver_api = {
|
||||
static DEVICE_API(bt_hci, driver_api) = {
|
||||
.open = driver_open,
|
||||
.send = driver_send,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue