aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2020-07-06 20:36:20 +0200
committerMauro Carvalho Chehab <[email protected]>2020-07-19 10:14:55 +0200
commit4d04c23fadc67acc47f26f7143e15c81b0143f47 (patch)
tree4399e388d957fc4ca808227106fa3a2d19da5bdd /tools/perf/scripts/python/sctop.py
parentf5ddf19eca33281d8aabb8d802bed5a5658bbcb6 (diff)
media: ti-vpe: cal: Use ARRAY_SIZE to replace numerical value
Use ARRAY_SIZE(cal->ctx) to iterate over the cal->ctx array instead of using the numerical value from the CAL_NUM_CONTEXT macro (or, worse, hardcoding the value 2). This will allow reworking contexts with less changes in the code. Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Benoit Parrot <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions