File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -684,15 +684,15 @@ static int ifx_autanalog_sar_adc_init(const struct device *dev)
684684
685685#ifdef CONFIG_ADC_ASYNC
686686#define ADC_IFX_AUTANALOG_SAR_DRIVER_API (n ) \
687- static const struct adc_driver_api ifx_autanalog_sar_adc_api_##n = { \
687+ static DEVICE_API(adc, ifx_autanalog_sar_adc_api_##n) = { \
688688 .channel_setup = ifx_autanalog_sar_adc_channel_setup, \
689689 .read = ifx_autanalog_sar_adc_read, \
690690 .read_async = ifx_autanalog_sar_adc_read_async, \
691691 .ref_internal = DT_INST_PROP(n, vref_mv), \
692692 };
693693#else
694694#define ADC_IFX_AUTANALOG_SAR_DRIVER_API (n ) \
695- static const struct adc_driver_api ifx_autanalog_sar_adc_api_##n = { \
695+ static DEVICE_API(adc, ifx_autanalog_sar_adc_api_##n) = { \
696696 .channel_setup = ifx_autanalog_sar_adc_channel_setup, \
697697 .read = ifx_autanalog_sar_adc_read, \
698698 .ref_internal = DT_INST_PROP(n, vref_mv), \
You can’t perform that action at this time.
0 commit comments