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:
parent
459d2ef6a4
commit
ad136ba38d
5 changed files with 10 additions and 10 deletions
|
|
@ -1263,8 +1263,8 @@ const static struct ipc_service_backend backend_ops = {
|
||||||
static const struct icbmsg_config backend_config_##i = \
|
static const struct icbmsg_config backend_config_##i = \
|
||||||
{ \
|
{ \
|
||||||
.control_config = { \
|
.control_config = { \
|
||||||
.mbox_tx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), tx), \
|
.mbox_tx = MBOX_DT_INST_CHANNEL_GET(i, tx), \
|
||||||
.mbox_rx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), rx), \
|
.mbox_rx = MBOX_DT_INST_CHANNEL_GET(i, rx), \
|
||||||
}, \
|
}, \
|
||||||
.tx = { \
|
.tx = { \
|
||||||
.blocks_ptr = (uint8_t *)GET_BLOCKS_ADDR_INST(i, tx, rx), \
|
.blocks_ptr = (uint8_t *)GET_BLOCKS_ADDR_INST(i, tx, rx), \
|
||||||
|
|
|
||||||
|
|
@ -56,8 +56,8 @@ static int backend_init(const struct device *instance)
|
||||||
|
|
||||||
#define DEFINE_BACKEND_DEVICE(i) \
|
#define DEFINE_BACKEND_DEVICE(i) \
|
||||||
static const struct icmsg_config_t backend_config_##i = { \
|
static const struct icmsg_config_t backend_config_##i = { \
|
||||||
.mbox_tx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), tx), \
|
.mbox_tx = MBOX_DT_INST_CHANNEL_GET(i, tx), \
|
||||||
.mbox_rx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), rx), \
|
.mbox_rx = MBOX_DT_INST_CHANNEL_GET(i, rx), \
|
||||||
}; \
|
}; \
|
||||||
\
|
\
|
||||||
PBUF_DEFINE(tx_pb_##i, \
|
PBUF_DEFINE(tx_pb_##i, \
|
||||||
|
|
|
||||||
|
|
@ -278,8 +278,8 @@ static int backend_init(const struct device *instance)
|
||||||
|
|
||||||
#define DEFINE_BACKEND_DEVICE(i) \
|
#define DEFINE_BACKEND_DEVICE(i) \
|
||||||
static const struct icmsg_config_t backend_config_##i = { \
|
static const struct icmsg_config_t backend_config_##i = { \
|
||||||
.mbox_tx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), tx), \
|
.mbox_tx = MBOX_DT_INST_CHANNEL_GET(i, tx), \
|
||||||
.mbox_rx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), rx), \
|
.mbox_rx = MBOX_DT_INST_CHANNEL_GET(i, rx), \
|
||||||
}; \
|
}; \
|
||||||
\
|
\
|
||||||
PBUF_DEFINE(tx_pb_##i, \
|
PBUF_DEFINE(tx_pb_##i, \
|
||||||
|
|
|
||||||
|
|
@ -184,8 +184,8 @@ static int backend_init(const struct device *instance)
|
||||||
|
|
||||||
#define DEFINE_BACKEND_DEVICE(i) \
|
#define DEFINE_BACKEND_DEVICE(i) \
|
||||||
static const struct icmsg_config_t backend_config_##i = { \
|
static const struct icmsg_config_t backend_config_##i = { \
|
||||||
.mbox_tx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), tx), \
|
.mbox_tx = MBOX_DT_INST_CHANNEL_GET(i, tx), \
|
||||||
.mbox_rx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), rx), \
|
.mbox_rx = MBOX_DT_INST_CHANNEL_GET(i, rx), \
|
||||||
}; \
|
}; \
|
||||||
\
|
\
|
||||||
PBUF_DEFINE(tx_pb_##i, \
|
PBUF_DEFINE(tx_pb_##i, \
|
||||||
|
|
|
||||||
|
|
@ -798,8 +798,8 @@ static int backend_init(const struct device *instance)
|
||||||
.role = DT_ENUM_IDX_OR(DT_DRV_INST(i), role, ROLE_HOST), \
|
.role = DT_ENUM_IDX_OR(DT_DRV_INST(i), role, ROLE_HOST), \
|
||||||
.shm_size = DT_REG_SIZE(DT_INST_PHANDLE(i, memory_region)), \
|
.shm_size = DT_REG_SIZE(DT_INST_PHANDLE(i, memory_region)), \
|
||||||
.shm_addr = BACKEND_SHM_ADDR(i), \
|
.shm_addr = BACKEND_SHM_ADDR(i), \
|
||||||
.mbox_tx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), tx), \
|
.mbox_tx = MBOX_DT_INST_CHANNEL_GET(i, tx), \
|
||||||
.mbox_rx = MBOX_DT_CHANNEL_GET(DT_DRV_INST(i), rx), \
|
.mbox_rx = MBOX_DT_INST_CHANNEL_GET(i, rx), \
|
||||||
.wq_prio = COND_CODE_1(DT_INST_NODE_HAS_PROP(i, zephyr_priority), \
|
.wq_prio = COND_CODE_1(DT_INST_NODE_HAS_PROP(i, zephyr_priority), \
|
||||||
(DT_INST_PROP_BY_IDX(i, zephyr_priority, 0)), \
|
(DT_INST_PROP_BY_IDX(i, zephyr_priority, 0)), \
|
||||||
(0)), \
|
(0)), \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue