drivers: adc: Enable ADC on STM32WB

remove legacy define of common ADC instance

Signed-off-by: Rick Conrey <rick.conrey@witiproducts.com>
This commit is contained in:
Rick Conrey 2019-07-04 08:38:22 -07:00 committed by Kumar Gala
commit b8b8d46daa

View file

@ -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) || \