Re: [PATCH v9 2/7] drm/mediatek: Add crtc path enum for all_drm_priv array

From: Fei Shao
Date: Thu Aug 10 2023 - 01:36:18 EST


On Thu, Aug 10, 2023 at 2:15 AM Jason-JH.Lin <jason-jh.lin@xxxxxxxxxxxx> wrote:
>
> Add mtk_drm_crtc_path enum for each display path.
>
> Instead of using array index of all_drm_priv in mtk_drm_kms_init(),
> mtk_drm_crtc_path enum can make code more readable.
>
> Signed-off-by: Jason-JH.Lin <jason-jh.lin@xxxxxxxxxxxx>

Tested with MT8188 and the internal display is up and functioning.

Reviewed-by: Fei Shao <fshao@xxxxxxxxxxxx>
Tested-by: Fei Shao <fshao@xxxxxxxxxxxx>