summaryrefslogtreecommitdiff
path: root/drivers/media/platform/allegro-dvt/allegro-core.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2024-10-14 17:06:34 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2024-10-28 09:20:07 +0100
commit4bf194e10e42aa0759eb5cc0173b76d3523654b4 (patch)
tree405f978de188194862b4333e924eb8d6132d5147 /drivers/media/platform/allegro-dvt/allegro-core.c
parent8fcd2795d22a7b6aa0671aaa67a74c0f776707af (diff)
downloadlinux-4bf194e10e42aa0759eb5cc0173b76d3523654b4.tar.gz
linux-4bf194e10e42aa0759eb5cc0173b76d3523654b4.tar.bz2
linux-4bf194e10e42aa0759eb5cc0173b76d3523654b4.zip
media: platform: drop vb2_ops_wait_prepare/finish
Since commit 88785982a19d ("media: vb2: use lock if wait_prepare/finish are NULL") it is no longer needed to set the wait_prepare/finish vb2_ops callbacks as long as the lock field in vb2_queue is set. Since the vb2_ops_wait_prepare/finish callbacks already rely on that field, we can safely drop these callbacks. This simplifies the code and this is a step towards the goal of deleting these callbacks. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> # for meson-ge2d Acked-by: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
Diffstat (limited to 'drivers/media/platform/allegro-dvt/allegro-core.c')
-rw-r--r--drivers/media/platform/allegro-dvt/allegro-core.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/platform/allegro-dvt/allegro-core.c b/drivers/media/platform/allegro-dvt/allegro-core.c
index 44e0d5512f94..e491399afcc9 100644
--- a/drivers/media/platform/allegro-dvt/allegro-core.c
+++ b/drivers/media/platform/allegro-dvt/allegro-core.c
@@ -2897,8 +2897,6 @@ static const struct vb2_ops allegro_queue_ops = {
.buf_queue = allegro_buf_queue,
.start_streaming = allegro_start_streaming,
.stop_streaming = allegro_stop_streaming,
- .wait_prepare = vb2_ops_wait_prepare,
- .wait_finish = vb2_ops_wait_finish,
};
static int allegro_queue_init(void *priv,