drm/amd/display: Refactoring DSC enum dsc_bits_per_comp.
authorBhuvanachandra Pinninti <bpinnint@amd.com>
Tue, 8 Apr 2025 09:05:54 +0000 (14:35 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 May 2025 16:54:18 +0000 (12:54 -0400)
[Why]
Previously the 'dsc_bits_per_comp' enumeration was defined in individual
.c files, making it unavailable for other files that may need it.

[How]
The 'dsc_bits_per_comp' enumeration has been relocated to a common header
file.

Reviewed-by: Mounika Adhuri <Mounika.Adhuri@amd.com>
Reviewed-by: Martin Leung <martin.leung@amd.com>
Signed-off-by: Bhuvanachandra Pinninti <bpinnint@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dsc/dcn20/dcn20_dsc.c
drivers/gpu/drm/amd/display/dc/dsc/dcn20/dcn20_dsc.h
drivers/gpu/drm/amd/display/dc/dsc/dcn401/dcn401_dsc.c

index 75128fd3430671939a0f2320bb5ee6b844ebeeef..bd1b9aef6d5c8cd0ed5e99067f7956245d5f7189 100644 (file)
@@ -57,13 +57,6 @@ static const struct dsc_funcs dcn20_dsc_funcs = {
 #define DC_LOGGER \
        dsc->ctx->logger
 
-enum dsc_bits_per_comp {
-       DSC_BPC_8 = 8,
-       DSC_BPC_10 = 10,
-       DSC_BPC_12 = 12,
-       DSC_BPC_UNKNOWN
-};
-
 /* API functions (external or via structure->function_pointer) */
 
 void dsc2_construct(struct dcn20_dsc *dsc,
index 1fb90b52b814bca0b3dec30de7534e553451507a..a9c04fc95bd11013d00ebd1aaa6d7e588acc6ee7 100644 (file)
        type DSCRM_DSC_DOUBLE_BUFFER_REG_UPDATE_PENDING; \
        type DSCRM_DSC_FORWARD_EN_STATUS
 
+enum dsc_bits_per_comp {
+       DSC_BPC_8 = 8,
+       DSC_BPC_10 = 10,
+       DSC_BPC_12 = 12,
+       DSC_BPC_UNKNOWN
+};
 
 struct dcn20_dsc_registers {
        uint32_t DSC_TOP_CONTROL;
index 4893b793fec06c57ea8e98e2b7e96774ef50ecce..4222679fd4c9ad00dc5f8a742347b3749514f5ef 100644 (file)
@@ -45,12 +45,6 @@ static const struct dsc_funcs dcn401_dsc_funcs = {
 #define DC_LOGGER \
        dsc->ctx->logger
 
-enum dsc_bits_per_comp {
-       DSC_BPC_8 = 8,
-       DSC_BPC_10 = 10,
-       DSC_BPC_12 = 12,
-       DSC_BPC_UNKNOWN
-};
 
 /* API functions (external or via structure->function_pointer) */