media: pci: Fill v4l2_fmtdesc with designated initializers
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 21 Apr 2020 13:57:39 +0000 (15:57 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 6 May 2020 10:08:45 +0000 (12:08 +0200)
commitb72f14ee7eb3e9e2f8a9c4cb807a1ec749a4c022
tree3dd4f1cff3fda8c24311d878afe71c5ae2f43862
parentf645e6256bd1b12523b759fcc610861fb21c24c7
media: pci: Fill v4l2_fmtdesc with designated initializers

Replace initialization of static const v4l2_fmtdesc instances that
specify every struct member with designated initializers. This allows
not zeroing the reserved fields explicitly, and will avoid a need to
patch these drivers every time a reserved field is repurposed.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/cx18/cx18-ioctl.c
drivers/media/pci/ivtv/ivtv-ioctl.c