aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2023-02-15 17:18:39 +0200
committerHans Verkuil <[email protected]>2023-04-12 09:46:06 +0200
commite3a69496a1cde364c74a600d7a370179b58aed29 (patch)
treeb7126106ed563f46d6087763dcaf4bd66ebc04a8 /tools/perf/scripts/python/libxed.py
parentecefa105cc44fff6d170ac5f441e76cb229f8e19 (diff)
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 <[email protected]> Reviewed-by: Lad Prabhakar <[email protected]> # For am437x Acked-by: Sakari Ailus <[email protected]> Reviewed-by: Tomi Valkeinen <[email protected]> Reviewed-by: Kieran Bingham <[email protected]> Reviewed-by: Philipp Zabel <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions