aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorMarijn Suijten <[email protected]>2022-02-26 20:46:32 +0100
committerRob Clark <[email protected]>2022-04-06 09:25:09 -0700
commit0fe35b8dcb8b3c4b751a1a44f1e128b690af71e4 (patch)
tree05be29c80abfab6a8b71002b078da0f28331f91c /lib/mpi/mpi-cmp.c
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 <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions