Skip to content

Commit

Permalink
drivers: video: give a common prefix to all the video sensors
Browse files Browse the repository at this point in the history
This allows to have a more immediate insight of the different kinds of
video drivers present in this directory, as well as help maintenance
of a whole group at once i.e. during refactors.

Signed-off-by: Josuah Demangeon <[email protected]>
  • Loading branch information
josuah committed May 20, 2024
1 parent 34c84ec commit a3f6020
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 13 deletions.
8 changes: 4 additions & 4 deletions drivers/video/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ zephyr_library()
zephyr_library_sources(video_common.c)

zephyr_library_sources_ifdef(CONFIG_VIDEO_MCUX_CSI video_mcux_csi.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_MT9M114 video_sensor_mt9m114.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV2640 video_sensor_ov2640.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV5640 video_sensor_ov5640.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7725 video_sensor_ov7725.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_SW_GENERATOR video_sw_generator.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_MT9M114 mt9m114.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV7725 ov7725.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV2640 ov2640.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_STM32_DCMI video_stm32_dcmi.c)
zephyr_library_sources_ifdef(CONFIG_VIDEO_OV5640 ov5640.c)
13 changes: 4 additions & 9 deletions drivers/video/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,12 @@ config VIDEO_BUFFER_POOL_ALIGN
default 64

source "drivers/video/Kconfig.mcux_csi"

source "drivers/video/Kconfig.sensor_mt9m114"
source "drivers/video/Kconfig.sensor_ov2640"
source "drivers/video/Kconfig.sensor_ov5640"
source "drivers/video/Kconfig.sensor_ov7725"
source "drivers/video/Kconfig.sw_generator"

source "drivers/video/Kconfig.mt9m114"

source "drivers/video/Kconfig.ov7725"

source "drivers/video/Kconfig.ov2640"

source "drivers/video/Kconfig.stm32_dcmi"

source "drivers/video/Kconfig.ov5640"

endif # VIDEO
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a3f6020

Please sign in to comment.