]> asedeno.scripts.mit.edu Git - linux.git/commit
media: ti-vpe: vpe: use standard struct instead of duplicating fields
authorBenoit Parrot <bparrot@ti.com>
Mon, 7 Oct 2019 15:10:04 +0000 (12:10 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 10 Oct 2019 16:51:55 +0000 (13:51 -0300)
commit34efd808dbf4c824b5a354a58418e0d8e98df08f
treeae94f5c0e63471e2cefd181aa5be3e577e5dcb9d
parentf3320447a22a37bc9b9d2769d14aa39860fd5698
media: ti-vpe: vpe: use standard struct instead of duplicating fields

For each queue we need to maintain resolutions, pixel format,
bytesperline, sizeimage, colorspace, etc.

Instead of manually adding more entries in the vpe_q_data struct, it is
better to just add a "struct v4l2_format" member and use that to store
all needed information.

Signed-off-by: Benoit Parrot <bparrot@ti.com>
[hverkuil@xs4all.nl: fix checkpatch warning]
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/ti-vpe/vpe.c