drm/panel/s6e3ha2: fix brightness to nits mapping 89/87489/4
authorAndrzej Hajda <a.hajda@samsung.com>
Wed, 7 Sep 2016 13:15:05 +0000 (15:15 +0200)
committerInki Dae <inki.dae@samsung.com>
Thu, 22 Sep 2016 08:08:49 +0000 (01:08 -0700)
commit7dfee15b53b76b7ff4230ef8804338943cde4598
tree256bfb8672fd08f1f0acff10b644ef81b34d3c69
parent0b222247ae97b85688c06ef963a8188cbd69c341
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