]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit467eb99fbb15893631ac4d18c050c69e6c7775d2
treef0c27ae5c3f98ee43d6bfff789dc306a740ce982
parent22f2493737048dd90b3ae270008262c64f373bca
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