]> git.baikalelectronics.ru Git - kernel.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)
commitf43066f3a6508aa31939c831bc064247690641fe
treeae94f5c0e63471e2cefd181aa5be3e577e5dcb9d
parent6e114339518d28dadd2e3c2867d52972bc5c791f
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