modbus: serial: Convert to DEVICE_DT_GET
Move to using DEVICE_DT_GET so we can phase out DT_LABEL. Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
parent
e63643d212
commit
e1e8179690
3 changed files with 3 additions and 7 deletions
|
@ -35,7 +35,7 @@ DT_INST_FOREACH_STATUS_OKAY(MB_RTU_DEFINE_GPIO_CFGS)
|
|||
(&prop##_cfg_##inst), (NULL))
|
||||
|
||||
#define MODBUS_DT_GET_SERIAL_DEV(inst) { \
|
||||
.dev_name = DT_INST_BUS_LABEL(inst), \
|
||||
.dev = DEVICE_DT_GET(DT_INST_BUS(inst)), \
|
||||
.de = MB_RTU_ASSIGN_GPIO_CFG(inst, de_gpios), \
|
||||
.re = MB_RTU_ASSIGN_GPIO_CFG(inst, re_gpios), \
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue