Skip to content

Commit 4b511eb

Browse files
gmarullcarlescufi
authored andcommitted
drivers: syscon: use instance based macros
Replace usage of DT_DRV_INST with instance based macros. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent e3d4c2c commit 4b511eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/syscon/syscon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ static int syscon_generic_init(const struct device *dev)
138138
.reg_width = DT_INST_PROP_OR(inst, reg_io_width, 4), \
139139
}; \
140140
static struct syscon_generic_data syscon_generic_data_##inst = { \
141-
.size = DT_REG_SIZE(DT_DRV_INST(inst)), \
141+
.size = DT_INST_REG_SIZE(inst), \
142142
}; \
143143
DEVICE_DT_INST_DEFINE(inst, syscon_generic_init, NULL, &syscon_generic_data_##inst, \
144144
&syscon_generic_config_##inst, PRE_KERNEL_1, \

0 commit comments

Comments
 (0)