[media] Use a named union in struct v4l2_ioctl_info
authorHans Verkuil <hverkuil@xs4all.nl>
Thu, 12 Jul 2012 15:06:24 +0000 (12:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 31 Jul 2012 00:43:25 +0000 (21:43 -0300)
commit26ddcbcca3057125a0e5f3901b06439a20869640
tree00a0fe47765d6874ce3cf4a147ffb92a229f316d
parenta4de5f058c56a3cc72dc31dabc548eab100e3d2d
[media] Use a named union in struct v4l2_ioctl_info

Hi Mauro,

struct v4l2_ioctl_info uses an anonymous union, which is initialized
in the v4l2_ioctls table.

Unfortunately gcc < 4.6 uses a non-standard syntax for that, so trying to
compile v4l2-ioctl.c with an older gcc will fail.

It is possible to work around this by testing the gcc version, but in this
case it is easier to make the union named since it is used in only a few
places.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ioctl.c