OSDN Git Service

drm/amd/display: Refactor avi_info_frame colorimetry determination
authorJoshua Ashton <joshua@froggi.es>
Tue, 10 Jan 2023 19:14:06 +0000 (19:14 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:47:22 +0000 (12:47 -0400)
commiteaa7d8301109092670c5cf3e12c502618d6adc51
treeaca51e983220d0ccb0c07c844d9ee92478570463
parentfd45b6540f513887c172e2082d437209fe8f4a54
drm/amd/display: Refactor avi_info_frame colorimetry determination

Replace the messy two if-else chains here that were
on the same value with a switch on the enum.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Cc: Pekka Paalanen <ppaalanen@gmail.com>
Cc: Sebastian Wick <sebastian.wick@redhat.com>
Cc: Vitaly.Prosyak@amd.com
Cc: Joshua Ashton <joshua@froggi.es>
Cc: Simon Ser <contact@emersion.fr>
Cc: Melissa Wen <mwen@igalia.com>
Cc: dri-devel@lists.freedesktop.org
Cc: amd-gfx@lists.freedesktop.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c