diff --git a/drivers/video/gc2145.c b/drivers/video/gc2145.c index e68db0346bd007a..f7c779f7fc8f078 100644 --- a/drivers/video/gc2145.c +++ b/drivers/video/gc2145.c @@ -1113,7 +1113,7 @@ static int gc2145_set_ctrl(const struct device *dev, unsigned int cid, void *val } } -static const struct video_driver_api gc2145_driver_api = { +static DEVICE_API(video, gc2145_driver_api) = { .set_format = gc2145_set_fmt, .get_format = gc2145_get_fmt, .get_caps = gc2145_get_caps, diff --git a/drivers/video/mt9m114.c b/drivers/video/mt9m114.c index 96f6673a96a94a0..5fb079f1cf67f3b 100644 --- a/drivers/video/mt9m114.c +++ b/drivers/video/mt9m114.c @@ -461,7 +461,7 @@ static int mt9m114_get_caps(const struct device *dev, enum video_endpoint_id ep, return 0; } -static const struct video_driver_api mt9m114_driver_api = { +static DEVICE_API(video, mt9m114_driver_api) = { .set_format = mt9m114_set_fmt, .get_format = mt9m114_get_fmt, .get_caps = mt9m114_get_caps, diff --git a/drivers/video/ov2640.c b/drivers/video/ov2640.c index 3ca5e02f147ea55..987d97aa3051af5 100644 --- a/drivers/video/ov2640.c +++ b/drivers/video/ov2640.c @@ -971,7 +971,7 @@ static int ov2640_set_ctrl(const struct device *dev, return ret; } -static const struct video_driver_api ov2640_driver_api = { +static DEVICE_API(video, ov2640_driver_api) = { .set_format = ov2640_set_fmt, .get_format = ov2640_get_fmt, .get_caps = ov2640_get_caps, diff --git a/drivers/video/ov5640.c b/drivers/video/ov5640.c index 960901daf57c2b8..7b871fb5e281df5 100644 --- a/drivers/video/ov5640.c +++ b/drivers/video/ov5640.c @@ -915,7 +915,7 @@ static int ov5640_enum_frmival(const struct device *dev, enum video_endpoint_id return 0; } -static const struct video_driver_api ov5640_driver_api = { +static DEVICE_API(video, ov5640_driver_api) = { .set_format = ov5640_set_fmt, .get_format = ov5640_get_fmt, .get_caps = ov5640_get_caps, diff --git a/drivers/video/ov7670.c b/drivers/video/ov7670.c index 0369fdf8e1a647b..84107a8bac596af 100644 --- a/drivers/video/ov7670.c +++ b/drivers/video/ov7670.c @@ -547,7 +547,7 @@ static int ov7670_init(const struct device *dev) return 0; } -static const struct video_driver_api ov7670_api = { +static DEVICE_API(video, ov7670_api) = { .set_format = ov7670_set_fmt, .get_format = ov7670_get_fmt, .get_caps = ov7670_get_caps, diff --git a/drivers/video/ov7725.c b/drivers/video/ov7725.c index 55f7bde751edfc6..efcd8ab14d9b217 100644 --- a/drivers/video/ov7725.c +++ b/drivers/video/ov7725.c @@ -548,7 +548,7 @@ static int ov7725_get_caps(const struct device *dev, return 0; } -static const struct video_driver_api ov7725_driver_api = { +static DEVICE_API(video, ov7725_driver_api) = { .set_format = ov7725_set_fmt, .get_format = ov7725_get_fmt, .get_caps = ov7725_get_caps, diff --git a/drivers/video/video_esp32_dvp.c b/drivers/video/video_esp32_dvp.c index beba4de320c754d..b93f81dc5cec9d3 100644 --- a/drivers/video/video_esp32_dvp.c +++ b/drivers/video/video_esp32_dvp.c @@ -396,7 +396,7 @@ static int video_esp32_init(const struct device *dev) return 0; } -static const struct video_driver_api esp32_driver_api = { +static DEVICE_API(video, esp32_driver_api) = { /* mandatory callbacks */ .set_format = video_esp32_set_fmt, .get_format = video_esp32_get_fmt, diff --git a/drivers/video/video_mcux_csi.c b/drivers/video/video_mcux_csi.c index 244dc61ab6a6684..a9224145e1c0c8a 100644 --- a/drivers/video/video_mcux_csi.c +++ b/drivers/video/video_mcux_csi.c @@ -478,7 +478,7 @@ static int video_mcux_csi_enum_frmival(const struct device *dev, enum video_endp return ret; } -static const struct video_driver_api video_mcux_csi_driver_api = { +static DEVICE_API(video, video_mcux_csi_driver_api) = { .set_format = video_mcux_csi_set_fmt, .get_format = video_mcux_csi_get_fmt, .stream_start = video_mcux_csi_stream_start, diff --git a/drivers/video/video_mcux_mipi_csi2rx.c b/drivers/video/video_mcux_mipi_csi2rx.c index a73c17efa07fe0f..e625fe7adb0baea 100644 --- a/drivers/video/video_mcux_mipi_csi2rx.c +++ b/drivers/video/video_mcux_mipi_csi2rx.c @@ -311,7 +311,7 @@ static int mipi_csi2rx_enum_frmival(const struct device *dev, enum video_endpoin return 0; } -static const struct video_driver_api mipi_csi2rx_driver_api = { +static DEVICE_API(video, mipi_csi2rx_driver_api) = { .get_caps = mipi_csi2rx_get_caps, .get_format = mipi_csi2rx_get_fmt, .set_format = mipi_csi2rx_set_fmt, diff --git a/drivers/video/video_mcux_smartdma.c b/drivers/video/video_mcux_smartdma.c index 860ce1476b7eb10..7cf200b11cfd94c 100644 --- a/drivers/video/video_mcux_smartdma.c +++ b/drivers/video/video_mcux_smartdma.c @@ -357,7 +357,7 @@ static int nxp_video_sdma_init(const struct device *dev) return 0; } -static const struct video_driver_api nxp_video_sdma_api = { +static DEVICE_API(video, nxp_video_sdma_api) = { .get_format = nxp_video_sdma_get_format, .set_format = nxp_video_sdma_set_format, .get_caps = nxp_video_sdma_get_caps, diff --git a/drivers/video/video_stm32_dcmi.c b/drivers/video/video_stm32_dcmi.c index 2af5dc14b5a9cd6..599d1a5d5a1bdcd 100644 --- a/drivers/video/video_stm32_dcmi.c +++ b/drivers/video/video_stm32_dcmi.c @@ -372,7 +372,7 @@ static inline int video_stm32_dcmi_get_ctrl(const struct device *dev, unsigned i return ret; } -static const struct video_driver_api video_stm32_dcmi_driver_api = { +static DEVICE_API(video, video_stm32_dcmi_driver_api) = { .set_format = video_stm32_dcmi_set_fmt, .get_format = video_stm32_dcmi_get_fmt, .stream_start = video_stm32_dcmi_stream_start, diff --git a/drivers/video/video_sw_generator.c b/drivers/video/video_sw_generator.c index 845834d5a844ccb..c786d9c26b5eb24 100644 --- a/drivers/video/video_sw_generator.c +++ b/drivers/video/video_sw_generator.c @@ -337,7 +337,7 @@ static int video_sw_generator_enum_frmival(const struct device *dev, enum video_ return 0; } -static const struct video_driver_api video_sw_generator_driver_api = { +static DEVICE_API(video, video_sw_generator_driver_api) = { .set_format = video_sw_generator_set_fmt, .get_format = video_sw_generator_get_fmt, .stream_start = video_sw_generator_stream_start,