Skip to content

Commit bda8878

Browse files
gmarullcarlescufi
authored andcommitted
drivers: pwm: stm32: use instance based macros
Replace usage of DT_DRV_INST with instance based macros. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 45a3985 commit bda8878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pwm/pwm_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ replaced by 'st,prescaler' property in parent node, aka timers"
668668
.timer = (TIM_TypeDef *)DT_REG_ADDR(DT_INST_PARENT(index)), \
669669
/* For compatibility reason, use pwm st_prescaler property */ \
670670
/* if exist, otherwise use parent (timers) property */ \
671-
.prescaler = DT_PROP_OR(DT_DRV_INST(index), st_prescaler, \
671+
.prescaler = DT_INST_PROP_OR(index, st_prescaler, \
672672
(DT_PROP(DT_INST_PARENT(index), st_prescaler))), \
673673
.pclken = DT_INST_CLK(index, timer), \
674674
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(index), \

0 commit comments

Comments
 (0)