drm/msm/dpu: index dpu_kms->hw_vbif using vbif_idx
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 15 Jun 2022 12:57:01 +0000 (15:57 +0300)
committerRob Clark <robdclark@chromium.org>
Sun, 18 Sep 2022 16:38:02 +0000 (09:38 -0700)
commit7538f80ae0d98bf51eb89eee5344aec219902d42
tree39f280d54da46cc4c07b2f46fd137dc339bdafb5
parent5ccdcecaf8f732f593e359ebfb65de96b11bae66
drm/msm/dpu: index dpu_kms->hw_vbif using vbif_idx

Remove loops over hw_vbif. Instead always VBIF's idx as an index in the
array. This fixes an error in dpu_kms_hw_init(), where we fill
dpu_kms->hw_vbif[i], but check for an error pointer at
dpu_kms->hw_vbif[vbif_idx].

Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/489569/
Link: https://lore.kernel.org/r/20220615125703.24647-1-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c
drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c