Skip to content

Commit 6acad9b

Browse files
ngphibangcarlescufi
authored andcommitted
include: drivers: video: Remove unused video-controls header
Remove the unnecessary video-controls header included in video.h. Drivers, applications should explicitly include it when needed. Signed-off-by: Phi Bang Nguyen <[email protected]>
1 parent d29ef14 commit 6acad9b

File tree

6 files changed

+5
-2
lines changed

6 files changed

+5
-2
lines changed

drivers/video/gc2145.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <zephyr/device.h>
1010

1111
#include <zephyr/drivers/video.h>
12+
#include <zephyr/drivers/video-controls.h>
1213
#include <zephyr/drivers/i2c.h>
1314
#include <zephyr/drivers/gpio.h>
1415

drivers/video/ov2640.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <zephyr/device.h>
1111
#include <zephyr/logging/log.h>
1212
#include <zephyr/drivers/video.h>
13+
#include <zephyr/drivers/video-controls.h>
1314
#include <zephyr/drivers/i2c.h>
1415
#include <zephyr/drivers/gpio.h>
1516

drivers/video/ov5640.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <zephyr/drivers/i2c.h>
1616
#include <zephyr/drivers/gpio.h>
1717
#include <zephyr/drivers/video.h>
18+
#include <zephyr/drivers/video-controls.h>
1819

1920
LOG_MODULE_REGISTER(video_ov5640, CONFIG_VIDEO_LOG_LEVEL);
2021

drivers/video/video_sw_generator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include <zephyr/kernel.h>
1010
#include <zephyr/drivers/video.h>
11+
#include <zephyr/drivers/video-controls.h>
1112
#include <zephyr/logging/log.h>
1213

1314
LOG_MODULE_REGISTER(video_sw_generator, CONFIG_VIDEO_LOG_LEVEL);

include/zephyr/drivers/video.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727

2828
#include <zephyr/types.h>
2929

30-
#include <zephyr/drivers/video-controls.h>
31-
3230
#ifdef __cplusplus
3331
extern "C" {
3432
#endif

samples/drivers/video/capture_to_lvgl/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <zephyr/device.h>
99
#include <zephyr/drivers/display.h>
1010
#include <zephyr/drivers/video.h>
11+
#include <zephyr/drivers/video-controls.h>
1112
#include <lvgl.h>
1213

1314
#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL

0 commit comments

Comments
 (0)