File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -497,7 +497,7 @@ static int adc_cc23x0_init(const struct device *dev)
497
497
return 0 ;
498
498
}
499
499
500
- static const struct adc_driver_api adc_cc23x0_driver_api = {
500
+ static DEVICE_API ( adc , adc_cc23x0_driver_api ) = {
501
501
.channel_setup = adc_cc23x0_channel_setup ,
502
502
.read = adc_cc23x0_read ,
503
503
#ifdef CONFIG_ADC_ASYNC
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ static int adc_ch32v00x_init(const struct device *dev)
143
143
#define ADC_CH32V00X_DEVICE (n ) \
144
144
PINCTRL_DT_INST_DEFINE(n); \
145
145
\
146
- static const struct adc_driver_api adc_ch32v00x_api_##n = { \
146
+ static DEVICE_API(adc, adc_ch32v00x_api_##n) = { \
147
147
.channel_setup = adc_ch32v00x_channel_setup, \
148
148
.read = adc_ch32v00x_read, \
149
149
.ref_internal = DT_INST_PROP(n, vref_mv), \
You can’t perform that action at this time.
0 commit comments