[media] media: au0828: drop vbi_buffer_filled() and re-use buffer_filled()
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Tue, 24 Feb 2015 13:00:29 +0000 (10:00 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 3 Mar 2015 14:17:56 +0000 (11:17 -0300)
commitc5036d61e0bed3f4f51391a145638b426825e69c
tree7fc4649e2977f5a61b6f5372e89e5fdb0119bb6c
parent48205533bab78ffb504af3baf783c8f46942c16d
[media] media: au0828: drop vbi_buffer_filled() and re-use buffer_filled()

The vbi_buffer_filled() and buffer_filled() did the same functionality
except for incrementing the buffer sequence, this patch drops the
vbi_buffer_filled() and re-uses buffer_filled() for vbi buffers
as well by adding the check for vb2-queue type while incrementing
the sequence numbers. Along side this patch aligns the input parameters
of buffer_filled() function appropriately.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/au0828/au0828-video.c