drm/mediatek: Refactor plane init
authorSean Paul <seanpaul@chromium.org>
Tue, 5 Nov 2019 21:10:18 +0000 (16:10 -0500)
committerCK Hu <ck.hu@mediatek.com>
Wed, 6 Nov 2019 08:00:44 +0000 (16:00 +0800)
commit31c5558dae0513bd2bae33ea37543f584c6c35a5
treeadf7cf65a43edc7d2a56aa4e05b44c7c6c791250
parented24d5d05e5d6cdae1358c71278041d75ef51051
drm/mediatek: Refactor plane init

Add a couple of functions which enumerate the number of planes for a
component and initialize the planes for a component.

No functional changes in this patch, but it will allow us to selectively
support rotation if the component supports it.

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