drivers: use DT_INST_PARENT
Replace usages of DT_PARENT(DT_DRV_INST(idx)) with more idiomatic DT_INST_PARENT(idx). Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
0c0ad3d332
commit
3e9d8da9ec
11 changed files with 19 additions and 22 deletions
|
@ -111,7 +111,7 @@ static const struct ps2_driver_api ps2_channel_npcx_driver_api = {
|
|||
.channel_id = DT_INST_PROP(inst, channel), \
|
||||
.alts_size = ARRAY_SIZE(ps2_channel_alts##inst), \
|
||||
.alts_list = ps2_channel_alts##inst, \
|
||||
.ps2_ctrl = DEVICE_DT_GET(DT_PARENT(DT_DRV_INST(inst))), \
|
||||
.ps2_ctrl = DEVICE_DT_GET(DT_INST_PARENT(inst)), \
|
||||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(inst, ps2_npcx_channel_init, NULL, NULL, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue