diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-07-06 20:36:20 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-07-19 10:14:55 +0200 |
| commit | 4d04c23fadc67acc47f26f7143e15c81b0143f47 (patch) | |
| tree | 4399e388d957fc4ca808227106fa3a2d19da5bdd /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | media: ti-vpe: cal: Move DT parsing to CAMERARX (diff) | |
| download | linux-4d04c23fadc67acc47f26f7143e15c81b0143f47.tar.gz linux-4d04c23fadc67acc47f26f7143e15c81b0143f47.zip | |
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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Benoit Parrot <bparrot@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
