drm/amd/display: Refactoring DSC enum dsc_bits_per_comp.
[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>
This commit is contained in:
committed by
Alex Deucher
parent
b4db797117
commit
f6510641d2
@@ -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,
|
||||
|
||||
@@ -457,6 +457,12 @@
|
||||
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;
|
||||
|
||||
@@ -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) */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user