summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorMarijn Suijten <marijn.suijten@somainline.org>2022-02-26 20:46:32 +0100
committerRob Clark <robdclark@chromium.org>2022-04-06 09:25:09 -0700
commit0fe35b8dcb8b3c4b751a1a44f1e128b690af71e4 (patch)
tree05be29c80abfab6a8b71002b078da0f28331f91c /tools/perf/scripts/python/export-to-sqlite.py
parentf75e582b0c3ee8f0bddc2248cc8b9175f29c5937 (diff)
drm/msm/dpu: Use indexed array initializer to prevent mismatches
While there's a comment pointing from dpu_intr_set to dpu_hw_intr_reg and vice-versa, an array initializer using indices makes it so that the indices between the enum and array cannot possibly get out of sync even if they're accidentially ordered wrongly. It is still useful to keep the comment to be made aware where the register offset mapping resides while looking at dpu_hw_intr_reg. Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20220226194633.204501-1-marijn.suijten@somainline.org Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions