drm/amd/display: Increase precision for backlight curve
authorAnthony Koo <Anthony.Koo@amd.com>
Wed, 30 Jan 2019 16:05:38 +0000 (11:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Feb 2019 20:58:26 +0000 (15:58 -0500)
commitc19bd82f8b33f6cf505df0ff5027d4679fedaa3e
treef0c27ae5c3f98ee43d6bfff789dc306a740ce982
parentce72741b53cdc70f9738c04920fefb93448f1f5e
drm/amd/display: Increase precision for backlight curve

[Why]
We are currently losing precision when we convert from
16 bit --> 8 bit --> 16 bit.

[How]
We shouldn't down convert unnecessarily and lose precision.
Keep values at 16 bit and use directly.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/power/power_helpers.c