Merge pull request #320 from vicamo/for-upstream/ftbfs-against-linux-7.0

v4l2: omit wait_prepare/finish callbacks from vb2_ops for kernels >= 7.0
This commit is contained in:
Patrik Jakobsson
2026-03-17 08:33:10 +01:00
committed by GitHub

View File

@@ -303,8 +303,10 @@ static struct vb2_ops vb2_queue_ops = {
.start_streaming = fthd_start_streaming,
.stop_streaming = fthd_stop_streaming,
.buf_queue = fthd_buffer_queue,
#if LINUX_VERSION_CODE < KERNEL_VERSION(7, 0, 0)
.wait_prepare = vb2_ops_wait_prepare,
.wait_finish = vb2_ops_wait_finish,
#endif
};
static struct v4l2_file_operations fthd_vdev_fops = {