mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
media: rtl2832_sdr: drop vb2_ops_wait_prepare/finish
Since commit 88785982a1
("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>
This commit is contained in:
parent
361445a26d
commit
8fcd2795d2
1 changed files with 0 additions and 2 deletions
|
@ -947,8 +947,6 @@ static const struct vb2_ops rtl2832_sdr_vb2_ops = {
|
||||||
.buf_queue = rtl2832_sdr_buf_queue,
|
.buf_queue = rtl2832_sdr_buf_queue,
|
||||||
.start_streaming = rtl2832_sdr_start_streaming,
|
.start_streaming = rtl2832_sdr_start_streaming,
|
||||||
.stop_streaming = rtl2832_sdr_stop_streaming,
|
.stop_streaming = rtl2832_sdr_stop_streaming,
|
||||||
.wait_prepare = vb2_ops_wait_prepare,
|
|
||||||
.wait_finish = vb2_ops_wait_finish,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int rtl2832_sdr_g_tuner(struct file *file, void *priv,
|
static int rtl2832_sdr_g_tuner(struct file *file, void *priv,
|
||||||
|
|
Loading…
Add table
Reference in a new issue