input: drop vb2_ops_wait_prepare/finish
Subsystems (4)
PATCH 1/1 input: 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.
--- drivers/input/rmi4/rmi_f54.c | 2 -- drivers/input/touchscreen/atmel_mxt_ts.c | 2 -- drivers/input/touchscreen/sur40.c | 2 -- 3 files changed, 6 deletions(-)
drivers/input/rmi4/rmi_f54.c +0 -2
@@ -372,8 +372,6 @@ static const struct vb2_ops rmi_f54_queue_ops = { .queue_setup = rmi_f54_queue_setup, .buf_queue = rmi_f54_buffer_queue, .stop_streaming = rmi_f54_stop_streaming, - .wait_prepare = vb2_ops_wait_prepare, - .wait_finish = vb2_ops_wait_finish, };static const struct vb2_queue rmi_f54_queue = {
drivers/input/touchscreen/atmel_mxt_ts.c +0 -2
@@ -2535,8 +2535,6 @@ static void mxt_buffer_queue(struct vb2_buffer *vb)static const struct vb2_ops mxt_queue_ops = { .queue_setup = mxt_queue_setup, .buf_queue = mxt_buffer_queue, - .wait_prepare = vb2_ops_wait_prepare, - .wait_finish = vb2_ops_wait_finish, };static const struct vb2_queue mxt_queue = {
drivers/input/touchscreen/sur40.c +0 -2
@@ -1108,8 +1108,6 @@ static const struct vb2_ops sur40_queue_ops = { .buf_queue = sur40_buffer_queue, .start_streaming = sur40_start_streaming, .stop_streaming = sur40_stop_streaming, - .wait_prepare = vb2_ops_wait_prepare, - .wait_finish = vb2_ops_wait_finish, };static const struct vb2_queue sur40_queue = {
Signature · 1 line
2.45.2
Quoted 11 lines · Hans Verkuil
Since commit
88785982a19d("media: vb2: use lock if wait_prepare/finish are NULL") it is no longer needed to set the wait_prepare/finishvb2_opscallbacks as long as the lock field invb2_queueis 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 <[email protected]>
Applied, thank you.
Signature · 1 line
Dmitry