linux/drivers/media/platform/ti-vpe
Laurent Pinchart 9f87ee85ce media: Prefer designated initializers over memset for subdev pad ops
[ Upstream commit e3a69496a1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:36:44 +01:00
..
cal_regs.h media: ti-vpe: cal: add vc and datatype fields to cal_ctx 2021-07-12 13:14:50 +02:00
cal-camerarx.c media: ti-vpe: cal: allow more than 1 source pads 2021-07-12 14:22:11 +02:00
cal-video.c media: Prefer designated initializers over memset for subdev pad ops 2023-05-24 17:36:44 +01:00
cal.c media: ti: cal: fix possible memory leak in cal_ctx_create() 2023-03-10 09:39:43 +01:00
cal.h media: ti-vpe: cal: add embedded data support 2021-07-12 14:22:11 +02:00
csc.c
csc.h
Makefile
sc_coeff.h
sc.c media: ti-vpe: sc: remove redundant dev_err call in sc_create() 2021-04-06 16:09:31 +02:00
sc.h
vpdma_priv.h
vpdma.c
vpdma.h
vpe_regs.h
vpe.c media: ti-vpe: use pm_runtime_resume_and_get() 2021-05-20 16:02:44 +02:00