drm/mediatek: Find the cursor plane instead of hard coding it
authorEvan Benn <evanbenn@chromium.org>
Fri, 7 Feb 2020 04:23:51 +0000 (15:23 +1100)
committerCK Hu <ck.hu@mediatek.com>
Tue, 11 Feb 2020 01:14:47 +0000 (09:14 +0800)
commit318caac7c81cdf5806df30c3d72385659a5f0f53
treea5d1b04583577106e00e7bbbcaff5b0200779a08
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
drm/mediatek: Find the cursor plane instead of hard coding it

The cursor and primary planes were hard coded.
Now search for them for passing to drm_crtc_init_with_planes

Signed-off-by: Evan Benn <evanbenn@chromium.org>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_drm_crtc.c