Commit 26279364 authored by Lad, Prabhakar's avatar Lad, Prabhakar Committed by Mauro Carvalho Chehab

[media] media: davinci: vpif_display: drop buf_init() callback

this patch drops the buf_init() callback as init
of buf list is not required.
Signed-off-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent a2b235cb
...@@ -205,16 +205,6 @@ static void vpif_wait_finish(struct vb2_queue *vq) ...@@ -205,16 +205,6 @@ static void vpif_wait_finish(struct vb2_queue *vq)
mutex_lock(&common->lock); mutex_lock(&common->lock);
} }
static int vpif_buffer_init(struct vb2_buffer *vb)
{
struct vpif_disp_buffer *buf = container_of(vb,
struct vpif_disp_buffer, vb);
INIT_LIST_HEAD(&buf->list);
return 0;
}
static u8 channel_first_int[VPIF_NUMOBJECTS][2] = { {1, 1} }; static u8 channel_first_int[VPIF_NUMOBJECTS][2] = { {1, 1} };
static int vpif_start_streaming(struct vb2_queue *vq, unsigned int count) static int vpif_start_streaming(struct vb2_queue *vq, unsigned int count)
...@@ -351,7 +341,6 @@ static struct vb2_ops video_qops = { ...@@ -351,7 +341,6 @@ static struct vb2_ops video_qops = {
.queue_setup = vpif_buffer_queue_setup, .queue_setup = vpif_buffer_queue_setup,
.wait_prepare = vpif_wait_prepare, .wait_prepare = vpif_wait_prepare,
.wait_finish = vpif_wait_finish, .wait_finish = vpif_wait_finish,
.buf_init = vpif_buffer_init,
.buf_prepare = vpif_buffer_prepare, .buf_prepare = vpif_buffer_prepare,
.start_streaming = vpif_start_streaming, .start_streaming = vpif_start_streaming,
.stop_streaming = vpif_stop_streaming, .stop_streaming = vpif_stop_streaming,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment