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
|
@ -130,7 +130,7 @@ static const struct mdio_driver_api mdio_sam_driver_api = {
|
|||
|
||||
#define MDIO_SAM_CONFIG(n) \
|
||||
static const struct mdio_sam_dev_config mdio_sam_dev_config_##n = { \
|
||||
.regs = (Gmac *)DT_REG_ADDR(DT_PARENT(DT_DRV_INST(n))), \
|
||||
.regs = (Gmac *)DT_REG_ADDR(DT_INST_PARENT(n)), \
|
||||
.protocol = DT_INST_ENUM_IDX(n, protocol), \
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue