drm/mediatek: Add gamma property according to hardware capability
authorYongqiang Niu <yongqiang.niu@mediatek.com>
Fri, 13 Dec 2019 07:28:51 +0000 (15:28 +0800)
committerCK Hu <ck.hu@mediatek.com>
Fri, 10 Jan 2020 06:10:07 +0000 (14:10 +0800)
commit4cebc1de506fa753301266a5a23bb21bca52ad3a
tree44443d302354e6c350151b2b54c544a9a9e8f504
parent2f965be7f90083f7cfd57c49f74a7f341de335a9
drm/mediatek: Add gamma property according to hardware capability

If there is no gamma function in the crtc
display path, don't add gamma property
for crtc

Fixes: 2f3f4dda747c ("drm/mediatek: Add gamma correction.")
Signed-off-by: Yongqiang Niu <yongqiang.niu@mediatek.com>
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_drm_crtc.c