]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2-pci-skeleton: replace vb2_buffer with vb2_v4l2_buffer
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 26 Nov 2018 18:01:24 +0000 (13:01 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 3 Dec 2018 19:41:51 +0000 (14:41 -0500)
commit488536dbcc585e0d68df7ae4e19a4530fc72ab74
treee6108fbd081db62eadb6158df240cc6e87d159ba
parent135444d5485986bffb059081b374c821238285fb
media: v4l2-pci-skeleton: replace vb2_buffer with vb2_v4l2_buffer

Commit a77c2b0ead87 ("[media] media: videobuf2: Restructure vb2_buffer")
replaced vb2_buffer with vb2_v4l2_buffer in all v4l2 drivers. The
restructuring skipped the v4l2-pci-skeleton, probably because it resides
outside the drivers directory.

The v4l2_buf_ops assume that the passed buffer is a vb2_v4l2_buffer.
This is not the case if the skel_buffer is based on vb2_buffer instead
of vb2_v4l2_buffer.

Replace vb2_buffer with vb2_v4l2_buffer in the skeleton to make sure
that future drivers that are based on the skeleton use vb2_v4l2_buffer.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
samples/v4l/v4l2-pci-skeleton.c