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)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 5 Nov 2019 11:58:35 +0000 (08:58 -0300)
commit545b618cfb5cadacd00c25066b9a36540e5ca9e9
tree416ec95f39aecc7d66b6907088f1c6be03743c2e
parent3cbd3d99fd85096da2175b9ae0111893b91b7ad0
media: v4l2-core: fix touch support in v4l_g_fmt

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>
drivers/media/v4l2-core/v4l2-ioctl.c