summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2017-12-19 11:35:13 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-21 15:36:00 -0400
commit6dc9a2568f84084e5e2a606d60a739e0779a5959 (patch)
tree6e4e84c9336609518dba17ce7dc30597de4a2b8b /tools/perf/scripts/python/export-to-sqlite.py
parentd82a4a14d4ab4e7e00117594750938f69d4841c5 (diff)
media: atomisp: convert default struct values to use compound-literals with designated initializers
The CSS API uses a lot of nested anonymous structs defined in object macros to assign default values to its data-structures. These have been changed to use compound-literals and designated initializers to make them more comprehensible and less fragile. The compound-literals can also be used in assignment, which means we can get rid of some temporary variables whose only purpose is to be initialized by one of these anonymous structs and then serve as the rvalue in an assignment expression. A lot of the members of the default struct values used by the CSS API were explicitly initialized to zero values. Designated initializers have allowed these members, and in some case whole default struct values, to be removed. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions