drivers: pwm: stm32: 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
45a3985170
commit
bda8878b03
1 changed files with 1 additions and 1 deletions
|
@ -668,7 +668,7 @@ replaced by 'st,prescaler' property in parent node, aka timers"
|
|||
.timer = (TIM_TypeDef *)DT_REG_ADDR(DT_INST_PARENT(index)), \
|
||||
/* For compatibility reason, use pwm st_prescaler property */ \
|
||||
/* if exist, otherwise use parent (timers) property */ \
|
||||
.prescaler = DT_PROP_OR(DT_DRV_INST(index), st_prescaler, \
|
||||
.prescaler = DT_INST_PROP_OR(index, st_prescaler, \
|
||||
(DT_PROP(DT_INST_PARENT(index), st_prescaler))), \
|
||||
.pclken = DT_INST_CLK(index, timer), \
|
||||
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(index), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue