OpenCloudOS-Kernel/drivers/media/platform/ti
Laurent Pinchart e3a69496a1 media: Prefer designated initializers over memset for subdev pad ops
Structures passed to subdev pad operations are all zero-initialized, but
not always with the same kind of code constructs. While most drivers
used designated initializers, which zero all the fields that are not
specified, when declaring variables, some use memset(). Those two
methods lead to the same end result, and, depending on compiler
optimizations, may even be completely equivalent, but they're not
consistent.

Improve coding style consistency by using designated initializers
instead of calling memset(). Where applicable, also move the variables
to inner scopes of for loops to ensure correct initialization in all
iterations.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Lad Prabhakar <prabhakar.csengg@gmail.com> # For am437x
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-04-12 09:46:06 +02:00
..
am437x media: Prefer designated initializers over memset for subdev pad ops 2023-04-12 09:46:06 +02:00
cal media: Prefer designated initializers over memset for subdev pad ops 2023-04-12 09:46:06 +02:00
davinci media: vpif_display: Convert to platform remove callback returning void 2023-04-11 16:59:19 +02:00
omap media: omap_vout: Convert to platform remove callback returning void 2023-04-11 16:59:19 +02:00
omap3isp media: Zero-initialize all structures passed to subdev pad operations 2023-04-12 09:46:06 +02:00
vpe media: vpe: Convert to platform remove callback returning void 2023-04-11 16:59:19 +02:00
Kconfig media: platform: Create vendor/{Makefile,Kconfig} files 2022-03-18 05:58:35 +01:00
Makefile media: platform: Create vendor/{Makefile,Kconfig} files 2022-03-18 05:58:35 +01:00