Re: [PATCH] drm/msm/dpu: Use indexed array initializer to prevent mismatches

2022-02-26 Thread Dmitry Baryshkov
On 26/02/2022 22:46, Marijn Suijten wrote: 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

[PATCH] drm/msm/dpu: Use indexed array initializer to prevent mismatches

2022-02-26 Thread Marijn Suijten
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