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>
This commit is contained in:
Bibby Hsieh 2016-07-28 10:22:54 +08:00 • committed by Philipp Zabel
commit 2f3f4dda74
4 changed files with 48 additions and 1 deletions