drivers: bluetooth: hci: rpmsg: use chosen to abstract ipc instance
Added chosen syntax in Device Tree to abstract the IPC device that is used with the IPC service module in the Bluetooth HCI RPMsg driver. Ported affected boards to declare this alias. Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
This commit is contained in:
parent
d550320af6
commit
d87552a128
6 changed files with 8 additions and 2 deletions
|
@ -283,7 +283,8 @@ static struct ipc_ept_cfg hci_ept_cfg = {
|
|||
static int bt_rpmsg_open(void)
|
||||
{
|
||||
int err;
|
||||
const struct device *hci_ipc_instance = DEVICE_DT_GET(DT_NODELABEL(ipc0));
|
||||
const struct device *hci_ipc_instance =
|
||||
DEVICE_DT_GET(DT_CHOSEN(zephyr_bt_hci_rpmsg_ipc));
|
||||
|
||||
BT_DBG("");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue