Skip to content

Commit 7af56c4

Browse files
committed
drivers: video: expose video_find_ctrl by removing static keyword
video_find_ctrl becomes an API. Signed-off-by: Aiden Hu <[email protected]>
1 parent 9328c37 commit 7af56c4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/video/video_ctrls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ void video_auto_cluster_ctrl(struct video_ctrl *ctrls, uint8_t sz, bool set_vola
270270
}
271271
}
272272

273-
static int video_find_ctrl(const struct device *dev, uint32_t id, struct video_ctrl **ctrl)
273+
int video_find_ctrl(const struct device *dev, uint32_t id, struct video_ctrl **ctrl)
274274
{
275275
struct video_device *vdev = video_find_vdev(dev);
276276

drivers/video/video_ctrls.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ int video_init_menu_ctrl(struct video_ctrl *ctrl, const struct device *dev, uint
7272
int video_init_int_menu_ctrl(struct video_ctrl *ctrl, const struct device *dev, uint32_t id,
7373
uint8_t def, const int64_t menu[], size_t menu_len);
7474

75+
int video_find_ctrl(const struct device *dev, uint32_t id, struct video_ctrl **ctrl);
76+
7577
void video_cluster_ctrl(struct video_ctrl *ctrls, uint8_t sz);
7678

7779
void video_auto_cluster_ctrl(struct video_ctrl *ctrls, uint8_t sz, bool set_volatile);

0 commit comments

Comments
 (0)