drm/amd/display: Move enum gamut_remap_select to hw_shared.h
authorEric Bernstein <eric.bernstein@amd.com>
Tue, 29 Jan 2019 21:20:26 +0000 (16:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Mar 2019 20:09:32 +0000 (15:09 -0500)
This enum definition is shared, so move it to a shared location.

Signed-off-by: Eric Bernstein <eric.bernstein@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp_cm.c
drivers/gpu/drm/amd/display/dc/inc/hw/hw_shared.h

index cd1ebe57ed594844a392ec2e1f2f0071c3dddbfe..f91e4b49d21131bd65479c98a4cd9ea3d7513749 100644 (file)
@@ -91,13 +91,6 @@ enum dscl_mode_sel {
        DSCL_MODE_DSCL_BYPASS = 6
 };
 
-enum gamut_remap_select {
-       GAMUT_REMAP_BYPASS = 0,
-       GAMUT_REMAP_COEFF,
-       GAMUT_REMAP_COMA_COEFF,
-       GAMUT_REMAP_COMB_COEFF
-};
-
 void dpp_read_state(struct dpp *dpp_base,
                struct dcn_dpp_state *s)
 {
index 41f0f4c912e7bd8b7b3719ae1f6762fbc7c64684..882bcc5a40f692f9dce9dd59f4f8047173863e63 100644 (file)
@@ -88,13 +88,6 @@ enum dscl_mode_sel {
        DSCL_MODE_DSCL_BYPASS = 6
 };
 
-enum gamut_remap_select {
-       GAMUT_REMAP_BYPASS = 0,
-       GAMUT_REMAP_COEFF,
-       GAMUT_REMAP_COMA_COEFF,
-       GAMUT_REMAP_COMB_COEFF
-};
-
 static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = {
        {COLOR_SPACE_SRGB,
                {0x2000, 0, 0, 0, 0, 0x2000, 0, 0, 0, 0, 0x2000, 0} },
index da85537a448881689b8333a7d33f2d477172c21f..4c8e2c6fb6dbc8f01d26f46055ab59c02dd1f97a 100644 (file)
@@ -146,6 +146,12 @@ struct out_csc_color_matrix {
        uint16_t regval[12];
 };
 
+enum gamut_remap_select {
+       GAMUT_REMAP_BYPASS = 0,
+       GAMUT_REMAP_COEFF,
+       GAMUT_REMAP_COMA_COEFF,
+       GAMUT_REMAP_COMB_COEFF
+};
 
 enum opp_regamma {
        OPP_REGAMMA_BYPASS = 0,