Skip to content

Commit e9e64ba

Browse files
pdgendtkartben
authored andcommitted
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 <[email protected]>
1 parent 3146a55 commit e9e64ba

File tree

21 files changed

+21
-21
lines changed

21 files changed

+21
-21
lines changed

drivers/bluetooth/hci/h4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ static int h4_setup(const struct device *dev, const struct bt_hci_setup_params *
564564
}
565565
#endif
566566

567-
static const struct bt_hci_driver_api h4_driver_api = {
567+
static DEVICE_API(bt_hci, h4_driver_api) = {
568568
.open = h4_open,
569569
.send = h4_send,
570570
#if defined(CONFIG_BT_HCI_SETUP)

drivers/bluetooth/hci/h5.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ static int h5_open(const struct device *dev, bt_hci_recv_t recv)
801801
return 0;
802802
}
803803

804-
static const struct bt_hci_driver_api h5_driver_api = {
804+
static DEVICE_API(bt_hci, h5_driver_api) = {
805805
.open = h5_open,
806806
.send = h5_queue,
807807
};

drivers/bluetooth/hci/hci_ambiq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ static int bt_apollo_setup(const struct device *dev, const struct bt_hci_setup_p
422422
return ret;
423423
}
424424

425-
static const struct bt_hci_driver_api drv = {
425+
static DEVICE_API(bt_hci, drv) = {
426426
.open = bt_apollo_open,
427427
.close = bt_apollo_close,
428428
.send = bt_apollo_send,

drivers/bluetooth/hci/hci_da1469x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ static int bt_da1469x_send(const struct device *dev, struct net_buf *buf)
495495
return 0;
496496
}
497497

498-
static const struct bt_hci_driver_api drv = {
498+
static DEVICE_API(bt_hci, drv) = {
499499
.open = bt_da1469x_open,
500500
.close = bt_da1469x_close,
501501
.send = bt_da1469x_send,

drivers/bluetooth/hci/hci_esp32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ static int bt_esp32_close(const struct device *dev)
362362
return 0;
363363
}
364364

365-
static const struct bt_hci_driver_api drv = {
365+
static DEVICE_API(bt_hci, drv) = {
366366
.open = bt_esp32_open,
367367
.send = bt_esp32_send,
368368
.close = bt_esp32_close,

drivers/bluetooth/hci/hci_ifx_cyw208xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ static int cyw208xx_send(const struct device *dev, struct net_buf *buf)
299299
return ret ? -EIO : 0;
300300
}
301301

302-
static const struct bt_hci_driver_api drv = {
302+
static DEVICE_API(bt_hci, drv) = {
303303
.open = cyw208xx_open,
304304
.close = cyw208xx_close,
305305
.send = cyw208xx_send,

drivers/bluetooth/hci/hci_ifx_psoc6_bless.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static int psoc6_bless_hci_init(const struct device *dev)
265265
return 0;
266266
}
267267

268-
static const struct bt_hci_driver_api drv = {
268+
static DEVICE_API(bt_hci, drv) = {
269269
.open = psoc6_bless_open,
270270
.send = psoc6_bless_send,
271271
.setup = psoc6_bless_setup,

drivers/bluetooth/hci/hci_nxp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ static int bt_nxp_close(const struct device *dev)
532532
return ret;
533533
}
534534

535-
static const struct bt_hci_driver_api drv = {
535+
static DEVICE_API(bt_hci, drv) = {
536536
.open = bt_nxp_open,
537537
.setup = bt_nxp_setup,
538538
.close = bt_nxp_close,

drivers/bluetooth/hci/hci_silabs_efr32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ void sl_bt_controller_init(void)
252252
/* No extra initialization procedure required */
253253
}
254254

255-
static const struct bt_hci_driver_api drv = {
255+
static DEVICE_API(bt_hci, drv) = {
256256
.open = slz_bt_open,
257257
.send = slz_bt_send,
258258
};

drivers/bluetooth/hci/hci_spi_st.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ static int bt_spi_open(const struct device *dev, bt_hci_recv_t recv)
693693
return 0;
694694
}
695695

696-
static const struct bt_hci_driver_api drv = {
696+
static DEVICE_API(bt_hci, drv) = {
697697
#if defined(CONFIG_BT_BLUENRG_ACI) && !defined(CONFIG_BT_HCI_RAW)
698698
.setup = bt_spi_bluenrg_setup,
699699
#endif /* CONFIG_BT_BLUENRG_ACI && !CONFIG_BT_HCI_RAW */

0 commit comments

Comments
 (0)