WSL2-Linux-Kernel/drivers/media/platform/exynos4-is
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
..
Kconfig
Makefile
common.c
common.h
fimc-capture.c media: Prefer designated initializers over memset for subdev pad ops 2023-05-24 17:36:44 +01:00
fimc-core.c media: platform: exynos4-is: Fix error handling in fimc_md_init() 2022-12-31 13:14:11 +01:00
fimc-core.h media: exynos4-is: fix kernel-doc warnings 2021-04-06 10:29:08 +02:00
fimc-is-command.h
fimc-is-errno.c
fimc-is-errno.h
fimc-is-i2c.c
fimc-is-i2c.h
fimc-is-param.c
fimc-is-param.h
fimc-is-regs.c
fimc-is-regs.h
fimc-is-sensor.c
fimc-is-sensor.h
fimc-is.c media: exynos4-is: fimc-is: Add of_node_put() when breaking out of loop 2022-10-26 12:35:05 +02:00
fimc-is.h media: exynos4-is: Fix kernel-doc entries in fimc-is.h 2021-04-06 19:35:48 +02:00
fimc-isp-video.c media: exynos4-is: Fix a use after free in isp_video_release 2021-06-02 13:17:24 +02:00
fimc-isp-video.h media: exynos4-is: Fix compile warning 2022-06-09 10:22:39 +02:00
fimc-isp.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
fimc-isp.h media: exynos4-is: fix kernel-doc warnings 2021-04-06 10:29:08 +02:00
fimc-lite-reg.c media: platform: exynos4-is: remove all references to physical addresses 2020-12-03 07:49:16 +01:00
fimc-lite-reg.h
fimc-lite.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
fimc-lite.h media: exynos4-is: fix kernel-doc warnings 2021-04-06 10:29:08 +02:00
fimc-m2m.c media: exynos4-is: fix pm_runtime_get_sync() usage count 2021-05-10 11:36:34 +02:00
fimc-reg.c media: platform: exynos4-is: remove all references to physical addresses 2020-12-03 07:49:16 +01:00
fimc-reg.h media: exynos4-is: fix kernel-doc warnings 2021-04-06 10:29:08 +02:00
media-dev.c media: platform: exynos4-is: Fix error handling in fimc_md_init() 2022-12-31 13:14:11 +01:00
media-dev.h media: exynos4-is: fix kernel-doc warnings 2021-04-06 10:29:08 +02:00
mipi-csis.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
mipi-csis.h