]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b355513358f05e89893b2419c46425650edcbf7
tree65de59639f1a7c488ed5d50d929a40174053971e
parent5536957938264dab66bede49cd7ea219d4642f7b
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