]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: dvb-core: dvb_vb2: drop wait_prepare/finish callbacks
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 5 Jun 2025 06:57:37 +0000 (08:57 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 18 Dec 2025 10:14:57 +0000 (11:14 +0100)
commitcbb5cd440d06a87c2c8c5819c5ad5c2a73021687
tree74f59f66bc1bd45000a3789b2f81128e8dbd2dc0
parent37fd4a0306b5309849274b03a6bf2020ed3af95c
media: dvb-core: dvb_vb2: drop wait_prepare/finish callbacks

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.

Set the queue lock to &ctx->mutex, which makes it possible to drop
the wait_prepare/finish 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>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/dvb-core/dmxdev.c
drivers/media/dvb-core/dvb_vb2.c
include/media/dvb_vb2.h