diff --git a/drivers/adc/adc_stm32.c b/drivers/adc/adc_stm32.c index 38bf6fe26f8..59057ceca03 100644 --- a/drivers/adc/adc_stm32.c +++ b/drivers/adc/adc_stm32.c @@ -547,7 +547,8 @@ static int adc_stm32_init(struct device *dev) * These two series STM32 has one internal voltage reference source * to be enabled. */ - LL_ADC_SetCommonPathInternalCh(ADC, LL_ADC_PATH_INTERNAL_VREFINT); + LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(adc), + LL_ADC_PATH_INTERNAL_VREFINT); #endif #if defined(CONFIG_SOC_SERIES_STM32F0X) || \