From bda8878b038ab38d898c425cf4b4e52393e470b0 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Thu, 16 Dec 2021 11:15:45 +0100 Subject: [PATCH] drivers: pwm: stm32: use instance based macros Replace usage of DT_DRV_INST with instance based macros. Signed-off-by: Gerard Marull-Paretas --- drivers/pwm/pwm_stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/pwm_stm32.c b/drivers/pwm/pwm_stm32.c index abab8dc9c63..9abe67ab83c 100644 --- a/drivers/pwm/pwm_stm32.c +++ b/drivers/pwm/pwm_stm32.c @@ -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), \