media: v4l2-core: fix touch support in v4l_g_fmt
authorVandana BN <bnvandana@gmail.com>
Tue, 22 Oct 2019 07:51:40 +0000 (04:51 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:44:39 +0000 (16:44 +0100)
commit6e7a164f18e930be72dabb0c8caf3195474e27e0
tree537d537f9954c66eed8123f9797b2b5d61b83042
parent96d7c3cb33c591070d067b048129a4ddd9fb9346
media: v4l2-core: fix touch support in v4l_g_fmt

[ Upstream commit 545b618cfb5cadacd00c25066b9a36540e5ca9e9 ]

v4l_s_fmt, for VFL_TYPE_TOUCH, sets unneeded members of
the v4l2_pix_format structure to default values.This was
missing in v4l_g_fmt, which would lead to failures in
v4l2-compliance tests.

Signed-off-by: Vandana BN <bnvandana@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/v4l2-core/v4l2-ioctl.c