drm/mediatek: Add helper to get component for a plane
authorSean Paul <seanpaul@chromium.org>
Tue, 5 Nov 2019 21:10:19 +0000 (16:10 -0500)
committerCK Hu <ck.hu@mediatek.com>
Wed, 6 Nov 2019 08:00:44 +0000 (16:00 +0800)
commitd6b53f68356f74d11530cb834b1c8acfe5f2bae2
tree65de59639f1a7c488ed5d50d929a40174053971e
parent31c5558dae0513bd2bae33ea37543f584c6c35a5
drm/mediatek: Add helper to get component for a plane

Instead of hard-coding which components have planes, add a helper
function to walk the components and map a plane index to a component
layer.

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