drivers: syscon: use instance based macros
Replace usage of DT_DRV_INST with instance based macros. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
e3d4c2c278
commit
4b511eb520
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ static int syscon_generic_init(const struct device *dev)
|
||||||
.reg_width = DT_INST_PROP_OR(inst, reg_io_width, 4), \
|
.reg_width = DT_INST_PROP_OR(inst, reg_io_width, 4), \
|
||||||
}; \
|
}; \
|
||||||
static struct syscon_generic_data syscon_generic_data_##inst = { \
|
static struct syscon_generic_data syscon_generic_data_##inst = { \
|
||||||
.size = DT_REG_SIZE(DT_DRV_INST(inst)), \
|
.size = DT_INST_REG_SIZE(inst), \
|
||||||
}; \
|
}; \
|
||||||
DEVICE_DT_INST_DEFINE(inst, syscon_generic_init, NULL, &syscon_generic_data_##inst, \
|
DEVICE_DT_INST_DEFINE(inst, syscon_generic_init, NULL, &syscon_generic_data_##inst, \
|
||||||
&syscon_generic_config_##inst, PRE_KERNEL_1, \
|
&syscon_generic_config_##inst, PRE_KERNEL_1, \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue