media: omap3isp: drop wait_prepare/finish callbacks
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 28 Jan 2025 15:08:18 +0000 (16:08 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 30 Apr 2025 06:16:06 +0000 (08:16 +0200)
commit6e40cc9b4b462bf13ca69621f417a8658b8e1783
tree4688078d1972987913f2e3be2c1a572b4e473125
parent398a1b33f1479af35ca915c5efc9b00d6204f8fa
media: omap3isp: 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 &video->queue_lock, 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.

Note that the lock field of struct video_device is never set in this
driver, so the core v4l2_ioctl.c function v4l2_ioctl_get_lock() will never
take a lock.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/ti/omap3isp/ispvideo.c