ipc: ipc_service: backends: use MBOX_DT_INST_CHANNEL_GET

Instead of MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), ...).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2024-02-23 12:31:13 +01:00 committed by Fabio Baltieri
commit ad136ba38d
5 changed files with 10 additions and 10 deletions

View file

@ -1263,8 +1263,8 @@ const static struct ipc_service_backend backend_ops = {
static const struct icbmsg_config backend_config_##i = \
{ \
.control_config = { \
.mbox_tx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), tx), \
.mbox_rx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), rx), \
.mbox_tx = MBOX_DT_INST_CHANNEL_GET(i, tx), \
.mbox_rx = MBOX_DT_INST_CHANNEL_GET(i, rx), \
}, \
.tx = { \
.blocks_ptr = (uint8_t *)GET_BLOCKS_ADDR_INST(i, tx, rx), \

View file

@ -56,8 +56,8 @@ static int backend_init(const struct device *instance)
#define DEFINE_BACKEND_DEVICE(i) \
static const struct icmsg_config_t backend_config_##i = { \
.mbox_tx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), tx), \
.mbox_rx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), rx), \
.mbox_tx = MBOX_DT_INST_CHANNEL_GET(i, tx), \
.mbox_rx = MBOX_DT_INST_CHANNEL_GET(i, rx), \
}; \
\
PBUF_DEFINE(tx_pb_##i, \

View file

@ -278,8 +278,8 @@ static int backend_init(const struct device *instance)
#define DEFINE_BACKEND_DEVICE(i) \
static const struct icmsg_config_t backend_config_##i = { \
.mbox_tx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), tx), \
.mbox_rx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), rx), \
.mbox_tx = MBOX_DT_INST_CHANNEL_GET(i, tx), \
.mbox_rx = MBOX_DT_INST_CHANNEL_GET(i, rx), \
}; \
\
PBUF_DEFINE(tx_pb_##i, \

View file

@ -184,8 +184,8 @@ static int backend_init(const struct device *instance)
#define DEFINE_BACKEND_DEVICE(i) \
static const struct icmsg_config_t backend_config_##i = { \
.mbox_tx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), tx), \
.mbox_rx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), rx), \
.mbox_tx = MBOX_DT_INST_CHANNEL_GET(i, tx), \
.mbox_rx = MBOX_DT_INST_CHANNEL_GET(i, rx), \
}; \
\
PBUF_DEFINE(tx_pb_##i, \

View file

@ -798,8 +798,8 @@ static int backend_init(const struct device *instance)
.role = DT_ENUM_IDX_OR(DT_DRV_INST(i), role, ROLE_HOST), \
.shm_size = DT_REG_SIZE(DT_INST_PHANDLE(i, memory_region)), \
.shm_addr = BACKEND_SHM_ADDR(i), \
.mbox_tx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), tx), \
.mbox_rx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), rx), \
.mbox_tx = MBOX_DT_INST_CHANNEL_GET(i, tx), \
.mbox_rx = MBOX_DT_INST_CHANNEL_GET(i, rx), \
.wq_prio = COND_CODE_1(DT_INST_NODE_HAS_PROP(i, zephyr_priority), \
(DT_INST_PROP_BY_IDX(i, zephyr_priority, 0)), \
(0)), \