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:
Pieter De Gendt 2024-11-27 13:03:38 +01:00 committed by Benjamin Cabé
commit e9e64bab35
21 changed files with 21 additions and 21 deletions

View file

@ -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,
};

View file

@ -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,
};

View file

@ -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,
};

View file

@ -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,
};