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:
Kamil Piszczek 2022-04-28 18:22:56 +02:00 committed by Carles Cufí
commit d87552a128
6 changed files with 8 additions and 2 deletions

View file

@ -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("");