[media] v4l2-ioctl.c: always copy G/S_EDID result
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 10 May 2017 06:36:56 +0000 (03:36 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 10:42:24 +0000 (07:42 -0300)
commit043f77edae8bd50f238b7afc6bdf49c4db0ed4ac
treeaab140f61651c14d538bd81575167775df9ad7b4
parentce550362c5cf1e50f8116ba00f2e5bdb3ed151dd
[media] v4l2-ioctl.c: always copy G/S_EDID result

The VIDIOC_G/S_EDID ioctls can return valid data even if an error is returned.

Mark those ioctls accordingly. Rather than using an explicit 'if' to check for the
ioctl (as was done until now for VIDIOC_QUERY_DV_TIMINGS) just set a new flag in the
v4l2_ioctls array.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/v4l2-core/v4l2-ioctl.c