Skip to content

Commit 9a7e4b1

Browse files
galakcarlescufi
authored andcommitted
pwm: stm32: Remove support for deprecated st,prescaler prop
Remove code that supported deprecated st,prescaler devicetree property. Signed-off-by: Kumar Gala <[email protected]>
1 parent 3470d61 commit 9a7e4b1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

drivers/pwm/pwm_stm32.c

+1-11
Original file line numberDiff line numberDiff line change
@@ -711,13 +711,6 @@ static void pwm_stm32_irq_config_func_##index(const struct device *dev) \
711711
.enr = DT_CLOCKS_CELL(DT_INST_PARENT(index), bits) \
712712
}
713713

714-
/* Print warning if any pwm node has 'st,prescaler' property */
715-
#define PRESCALER_PWM(index) DT_INST_NODE_HAS_PROP(index, st_prescaler) ||
716-
#if (DT_INST_FOREACH_STATUS_OKAY(PRESCALER_PWM) 0)
717-
#warning "DT property 'st,prescaler' in pwm node is deprecated and should be \
718-
replaced by 'st,prescaler' property in parent node, aka timers"
719-
#endif
720-
721714
#define PWM_DEVICE_INIT(index) \
722715
static struct pwm_stm32_data pwm_stm32_data_##index; \
723716
IRQ_CONFIG_FUNC(index) \
@@ -726,10 +719,7 @@ replaced by 'st,prescaler' property in parent node, aka timers"
726719
\
727720
static const struct pwm_stm32_config pwm_stm32_config_##index = { \
728721
.timer = (TIM_TypeDef *)DT_REG_ADDR(DT_INST_PARENT(index)), \
729-
/* For compatibility reason, use pwm st_prescaler property */ \
730-
/* if exist, otherwise use parent (timers) property */ \
731-
.prescaler = DT_INST_PROP_OR(index, st_prescaler, \
732-
(DT_PROP(DT_INST_PARENT(index), st_prescaler))), \
722+
.prescaler = DT_PROP(DT_INST_PARENT(index), st_prescaler), \
733723
.countermode = DT_PROP(DT_INST_PARENT(index), st_countermode), \
734724
.pclken = DT_INST_CLK(index, timer), \
735725
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(index), \

0 commit comments

Comments
 (0)