Skip to content

Commit 696442f

Browse files
pdgendtdanieldegrasse
authored andcommitted
drivers: video: Place device APIs in linker sections
Use DEVICE_API macro to place driver API instances into a linker section. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent 1a7eb61 commit 696442f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/ov9655.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static int ov9655_enum_frmival(const struct device *dev, struct video_frmival_en
414414
return 0;
415415
}
416416

417-
static const struct video_driver_api ov9655_api = {
417+
static DEVICE_API(video, ov9655_api) = {
418418
.set_format = ov9655_set_fmt,
419419
.get_format = ov9655_get_fmt,
420420
.get_caps = ov9655_get_caps,

0 commit comments

Comments
 (0)