]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: cedrus: mpeg2: Use v4l2_m2m_get_vq helper for capture queue
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Thu, 14 Feb 2019 09:44:03 +0000 (04:44 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 20:33:25 +0000 (15:33 -0500)
commit73a1d43293069eb19642cf7c110f229846a52213
tree73d12140932f7b835f22e26bd43aaab0ec108276
parent9dacde5ed0645a8db2dbfd0951c24b9eed87cc60
media: cedrus: mpeg2: Use v4l2_m2m_get_vq helper for capture queue

Since there's a v4l2_m2m_get_vq helper, use it instead of accessing the
queue directly, which slightly increases readability.

Also reformat the code using the queue a bit while at it.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/sunxi/cedrus/cedrus_mpeg2.c