drm/mediatek: Add gamma correction.
authorBibby Hsieh <bibby.hsieh@mediatek.com>
Thu, 28 Jul 2016 02:22:54 +0000 (10:22 +0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 11 Aug 2016 08:52:22 +0000 (10:52 +0200)
commit2f3f4dda747c0619594d13996e65598ab675c60c
tree7eeecac304f67c6007d8c3f2da969c8183ff66dc
parente0a5d33702451329b7da70a15fad3b919e441401
drm/mediatek: Add gamma correction.

Add gamma set function to correct brightness values.
It applies arbitrary mapping curve to compensate the
incorrect transfer function of the panel.

Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/mediatek/mtk_drm_crtc.c
drivers/gpu/drm/mediatek/mtk_drm_crtc.h
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h