drm/amd/display: clean up one inconsistent indenting
PATCH 1/4 drm/amd/display: clean up one inconsistent indenting
The indentation of statements in the same curly bracket should be consistent.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- .../gpu/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dcn321/dcn321_fpu.c +8 -5
@@ -518,13 +518,16 @@ void dcn321_update_bw_bounding_box_fpu(struct dc *dc, struct clk_bw_params *bw_pif (dc->ctx->dc_bios->funcs->get_soc_bb_info (dc->ctx->dc_bios, &bb_info) ==BP_RESULT_OK ) {if (bb_info.dram_clock_change_latency_100ns >0 ) - dcn3_21_soc.dram_clock_change_latency_us = bb_info.dram_clock_change_latency_100ns *10 ; + dcn3_21_soc.dram_clock_change_latency_us = + bb_info.dram_clock_change_latency_100ns *10 ; -if (bb_info.dram_sr_enter_exit_latency_100ns >0 ) - dcn3_21_soc.sr_enter_plus_exit_time_us = bb_info.dram_sr_enter_exit_latency_100ns *10 ; +if (bb_info.dram_sr_enter_exit_latency_100ns >0 ) + dcn3_21_soc.sr_enter_plus_exit_time_us = + bb_info.dram_sr_enter_exit_latency_100ns *10 ; -if (bb_info.dram_sr_exit_latency_100ns >0 ) - dcn3_21_soc.sr_exit_time_us = bb_info.dram_sr_exit_latency_100ns *10 ; +if (bb_info.dram_sr_exit_latency_100ns >0 ) + dcn3_21_soc.sr_exit_time_us = + bb_info.dram_sr_exit_latency_100ns *10 ; } }
Signature · 1 line
2.20.1.7.g153144c
PATCH 2/4 drm/amd/display: clean up one inconsistent indenting
1. The indentation of statements in the same curly bracket should be consistent.
2. Variable declarations in the same function should be aligned.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- .../gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 13 ++++++++----- .../amd/display/dc/dml/dcn32/display_mode_vba_32.c | 6 +++--- .../display/dc/dml/dcn32/display_mode_vba_util_32.c | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c +8 -5
@@ -2135,13 +2135,16 @@ void dcn32_update_bw_bounding_box_fpu(struct dc *dc, struct clk_bw_params *bw_paif (dc->ctx->dc_bios->funcs->get_soc_bb_info (dc->ctx->dc_bios, &bb_info) ==BP_RESULT_OK ) {if (bb_info.dram_clock_change_latency_100ns >0 ) - dcn3_2_soc.dram_clock_change_latency_us = bb_info.dram_clock_change_latency_100ns *10 ; + dcn3_2_soc.dram_clock_change_latency_us = + bb_info.dram_clock_change_latency_100ns *10 ; -if (bb_info.dram_sr_enter_exit_latency_100ns >0 ) - dcn3_2_soc.sr_enter_plus_exit_time_us = bb_info.dram_sr_enter_exit_latency_100ns *10 ; +if (bb_info.dram_sr_enter_exit_latency_100ns >0 ) + dcn3_2_soc.sr_enter_plus_exit_time_us = + bb_info.dram_sr_enter_exit_latency_100ns *10 ; -if (bb_info.dram_sr_exit_latency_100ns >0 ) - dcn3_2_soc.sr_exit_time_us = bb_info.dram_sr_exit_latency_100ns *10 ; +if (bb_info.dram_sr_exit_latency_100ns >0 ) + dcn3_2_soc.sr_exit_time_us = + bb_info.dram_sr_exit_latency_100ns *10 ; } }
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c +3 -3
@@ -677,9 +677,9 @@ static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformandml_ceil ((double ) v->WritebackDelay[mode_lib->vba.VoltageLevel][k] / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]), 1)); -// Clamp to max OTG vstartup register limit -if (v->MaxVStartupLines[k] >1023 ) - v->MaxVStartupLines[k] =1023 ; +// Clamp to max OTG vstartup register limit +if (v->MaxVStartupLines[k] >1023 ) + v->MaxVStartupLines[k] =1023 ;#ifdef __DML_VBA_DEBUG__dml_print ("DML::%s: k=%d MaxVStartupLines = %d\n" , __func__, k, v->MaxVStartupLines[k]);
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c +1 -1
@@ -4277,7 +4277,7 @@ void dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport(double ActiveClockChangeLatencyHidingY;double ActiveClockChangeLatencyHidingC;double ActiveClockChangeLatencyHiding; -double EffectiveDETBufferSizeY; +double EffectiveDETBufferSizeY;double ActiveFCLKChangeLatencyMargin[DC__NUM_DPP__MAX ];double USRRetrainingLatencyMargin[DC__NUM_DPP__MAX ];double TotalPixelBW =0.0 ;
Signature · 1 line
2.20.1.7.g153144c
PATCH 3/4 drm/amd/display: clean up one inconsistent indenting
In reply to Yang LiThe indentation of statements in the same curly bracket should be consistent.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +3 -3
@@ -2151,8 +2151,8 @@ static int dcn10_align_pixel_clocks(struct dc *dc, int group_size, dc->res_pool->dp_clock_source->funcs->get_pixel_clk_frequency_100hz ( dc->res_pool->dp_clock_source, grouped_pipes[i]->stream_res.tg->inst, &pclk); - grouped_pipes[i]->stream->timing.pix_clk_100hz = - pclk*get_clock_divider (grouped_pipes[i], false); + grouped_pipes[i]->stream->timing.pix_clk_100hz = + pclk*get_clock_divider (grouped_pipes[i], false);if (master ==-1 ) master = i; }
@@ -2206,7 +2206,7 @@ void dcn10_enable_vblanks_synchronization( grouped_pipes[i]->stream->timing.pix_clk_100hz,get_clock_divider (grouped_pipes[master], false), get_clock_divider(grouped_pipes[i], false)); - grouped_pipes[i]->stream->vblank_synchronized = true; + grouped_pipes[i]->stream->vblank_synchronized = true; } grouped_pipes[master]->stream->vblank_synchronized = true;DC_SYNC_INFO ("Sync complete\n" );
Signature · 1 line
2.20.1.7.g153144c
PATCH 4/4 drm/amd/display: clean up one inconsistent indenting
In reply to Yang LiThe indentation of statements in the same curly bracket should be consistent.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c +3 -3
@@ -640,9 +640,9 @@ bool dcn32_set_output_transfer_func(struct dc *dc, stream->out_transfer_func, &mpc->blender_params, false)) params = &mpc->blender_params; -/* there are no ROM LUTs in OUTGAM */ -if (stream->out_transfer_func->type ==TF_TYPE_PREDEFINED ) -BREAK_TO_DEBUGGER (); +/* there are no ROM LUTs in OUTGAM */ +if (stream->out_transfer_func->type ==TF_TYPE_PREDEFINED ) +BREAK_TO_DEBUGGER (); } }
Signature · 1 line
2.20.1.7.g153144c