drm/amd/display: add dc_fixpt_from_s3132 helper
authorJoshua Ashton <joshua@froggi.es>
Thu, 16 Nov 2023 19:58:01 +0000 (18:58 -0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Dec 2023 21:08:01 +0000 (16:08 -0500)
commit889044f9e04f0829dd92640c551941bbe77bc0ea
treea4294116d2b9b4ba68d9c78b142c6690f58190a5
parentef113a3b1964b40dd87287806865b947d70f7df5
drm/amd/display: add dc_fixpt_from_s3132 helper

Detach value translation from CTM to reuse it for programming HDR
multiplier property.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
drivers/gpu/drm/amd/display/include/fixed31_32.h