Commit 34124947 authored by Alex Hung's avatar Alex Hung Committed by Alex Deucher

drm/amd/display: Correct indentations and spaces

[Why & How]
This fixes indentations and adjust spaces for better readability and
code styles.
Acked-by: default avatarWayne Lin <wayne.lin@amd.com>
Signed-off-by: default avatarAlex Hung <alex.hung@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 86cbadae
...@@ -1731,6 +1731,7 @@ static uint32_t get_ss_entry_number_from_internal_ss_info_tbl_v2_1( ...@@ -1731,6 +1731,7 @@ static uint32_t get_ss_entry_number_from_internal_ss_info_tbl_v2_1(
return 0; return 0;
} }
/** /**
* get_ss_entry_number_from_internal_ss_info_tbl_V3_1 * get_ss_entry_number_from_internal_ss_info_tbl_V3_1
* Get Number of SpreadSpectrum Entry from the ASIC_InternalSS_Info table of * Get Number of SpreadSpectrum Entry from the ASIC_InternalSS_Info table of
......
...@@ -329,15 +329,14 @@ struct clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *p ...@@ -329,15 +329,14 @@ struct clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *p
} }
break; break;
case AMDGPU_FAMILY_GC_11_0_0: { case AMDGPU_FAMILY_GC_11_0_0: {
struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL);
if (clk_mgr == NULL) {
BREAK_TO_DEBUGGER();
return NULL;
}
dcn32_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); if (clk_mgr == NULL) {
return &clk_mgr->base; BREAK_TO_DEBUGGER();
return NULL;
}
dcn32_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg);
return &clk_mgr->base;
} }
case AMDGPU_FAMILY_GC_11_0_1: { case AMDGPU_FAMILY_GC_11_0_1: {
......
...@@ -37,34 +37,34 @@ typedef enum { ...@@ -37,34 +37,34 @@ typedef enum {
} WCK_RATIO_e; } WCK_RATIO_e;
typedef struct { typedef struct {
uint32_t FClk; uint32_t FClk;
uint32_t MemClk; uint32_t MemClk;
uint32_t Voltage; uint32_t Voltage;
uint8_t WckRatio; uint8_t WckRatio;
uint8_t Spare[3]; uint8_t Spare[3];
} DfPstateTable314_t; } DfPstateTable314_t;
//Freq in MHz //Freq in MHz
//Voltage in milli volts with 2 fractional bits //Voltage in milli volts with 2 fractional bits
typedef struct { typedef struct {
uint32_t DcfClocks[NUM_DCFCLK_DPM_LEVELS]; uint32_t DcfClocks[NUM_DCFCLK_DPM_LEVELS];
uint32_t DispClocks[NUM_DISPCLK_DPM_LEVELS]; uint32_t DispClocks[NUM_DISPCLK_DPM_LEVELS];
uint32_t DppClocks[NUM_DPPCLK_DPM_LEVELS]; uint32_t DppClocks[NUM_DPPCLK_DPM_LEVELS];
uint32_t SocClocks[NUM_SOCCLK_DPM_LEVELS]; uint32_t SocClocks[NUM_SOCCLK_DPM_LEVELS];
uint32_t VClocks[NUM_VCN_DPM_LEVELS]; uint32_t VClocks[NUM_VCN_DPM_LEVELS];
uint32_t DClocks[NUM_VCN_DPM_LEVELS]; uint32_t DClocks[NUM_VCN_DPM_LEVELS];
uint32_t SocVoltage[NUM_SOC_VOLTAGE_LEVELS]; uint32_t SocVoltage[NUM_SOC_VOLTAGE_LEVELS];
DfPstateTable314_t DfPstateTable[NUM_DF_PSTATE_LEVELS]; DfPstateTable314_t DfPstateTable[NUM_DF_PSTATE_LEVELS];
uint8_t NumDcfClkLevelsEnabled; uint8_t NumDcfClkLevelsEnabled;
uint8_t NumDispClkLevelsEnabled; //Applies to both Dispclk and Dppclk uint8_t NumDispClkLevelsEnabled; //Applies to both Dispclk and Dppclk
uint8_t NumSocClkLevelsEnabled; uint8_t NumSocClkLevelsEnabled;
uint8_t VcnClkLevelsEnabled; //Applies to both Vclk and Dclk uint8_t VcnClkLevelsEnabled; //Applies to both Vclk and Dclk
uint8_t NumDfPstatesEnabled; uint8_t NumDfPstatesEnabled;
uint8_t spare[3]; uint8_t spare[3];
uint32_t MinGfxClk; uint32_t MinGfxClk;
uint32_t MaxGfxClk; uint32_t MaxGfxClk;
} DpmClocks314_t; } DpmClocks314_t;
struct dcn314_watermarks { struct dcn314_watermarks {
......
...@@ -340,7 +340,7 @@ struct resource_pool *dc_create_resource_pool(struct dc *dc, ...@@ -340,7 +340,7 @@ struct resource_pool *dc_create_resource_pool(struct dc *dc,
return res_pool; return res_pool;
} }
void dc_destroy_resource_pool(struct dc *dc) void dc_destroy_resource_pool(struct dc *dc)
{ {
if (dc) { if (dc) {
if (dc->res_pool) if (dc->res_pool)
...@@ -1485,6 +1485,7 @@ bool resource_build_scaling_params(struct pipe_ctx *pipe_ctx) ...@@ -1485,6 +1485,7 @@ bool resource_build_scaling_params(struct pipe_ctx *pipe_ctx)
struct dc_crtc_timing *timing = &pipe_ctx->stream->timing; struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
const struct rect odm_slice_rec = calculate_odm_slice_in_timing_active(pipe_ctx); const struct rect odm_slice_rec = calculate_odm_slice_in_timing_active(pipe_ctx);
bool res = false; bool res = false;
DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger); DC_LOGGER_INIT(pipe_ctx->stream->ctx->logger);
/* Invalid input */ /* Invalid input */
......
...@@ -61,7 +61,7 @@ void dc_stat_get_dmub_notification(const struct dc *dc, struct dmub_notification ...@@ -61,7 +61,7 @@ void dc_stat_get_dmub_notification(const struct dc *dc, struct dmub_notification
/* For HPD/HPD RX, convert dpia port index into link index */ /* For HPD/HPD RX, convert dpia port index into link index */
if (notify->type == DMUB_NOTIFICATION_HPD || if (notify->type == DMUB_NOTIFICATION_HPD ||
notify->type == DMUB_NOTIFICATION_HPD_IRQ || notify->type == DMUB_NOTIFICATION_HPD_IRQ ||
notify->type == DMUB_NOTIFICATION_DPIA_NOTIFICATION || notify->type == DMUB_NOTIFICATION_DPIA_NOTIFICATION ||
notify->type == DMUB_NOTIFICATION_SET_CONFIG_REPLY) { notify->type == DMUB_NOTIFICATION_SET_CONFIG_REPLY) {
notify->link_index = notify->link_index =
get_link_index_from_dpia_port_index(dc, notify->link_index); get_link_index_from_dpia_port_index(dc, notify->link_index);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment