drm/panel/s6e3ha2: fix brightness to nits mapping
authorAndrzej Hajda <a.hajda@samsung.com>
Wed, 7 Sep 2016 13:15:05 +0000 (15:15 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:52:51 +0000 (13:52 +0900)
commit1757e8e7a37e6928089dccfae4504902ab1b73e2
tree0f7208b058ad4d9fc7762c06d45568657df2b278
parent192a6db7fa2325401264e6c534c53610171cd04a
drm/panel/s6e3ha2: fix brightness to nits mapping

Brightness should be linearly mapped to nit values instead of nit indices.
Panel should use gamma index which has corresponding nit value nearest
to expected brightness after re-scaling.

Change-Id: I9bfa6385651b292881a10f8e2972551bdd0008de
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
drivers/gpu/drm/panel/panel-s6e3ha2.c