OpenCloudOS-Kernel/drivers/media/platform/ti/cal
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
..
Makefile
cal-camerarx.c media: ti: cal: use CSI-2 frame number for seq number 2022-08-30 07:43:39 +02:00
cal-video.c media: Prefer designated initializers over memset for subdev pad ops 2023-04-12 09:46:06 +02:00
cal.c media: cal: Convert to platform remove callback returning void 2023-04-11 16:59:19 +02:00
cal.h media: drivers: use video_device_pipeline_alloc_start() 2022-09-24 09:16:36 +02:00
cal_regs.h