drm/amd/display: clean codestyle errors
Subsystems (3)
cover drm/amd/display: clean codestyle errors
jppaulo (2):
drm/amd/display: clean inconsistent indenting drm/amd/display: clean else not following close brace
drivers/gpu/drm/amd/display/dc/core/dc.c | 6 +++--- drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-)
Signature · 1 line
2.43.0
PATCH 1/2 drm/amd/display: clean inconsistent indenting
From: jppaulo <[email protected]>
Clean some wrong indenting that throw errors in checkpatch.
--- drivers/gpu/drm/amd/display/dc/core/dc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc.c +3 -3
@@ -962,7 +962,7 @@ static bool dc_construct(struct dc *dc, goto fail; } - dc_ctx = dc->ctx; + dc_ctx = dc->ctx;/* Resource should construct all asic specific resources. * This should be the only place where we need to parse the asic id
@@ -3155,10 +3155,10 @@ static void commit_planes_do_stream_update(struct dc *dc,if (stream_update->mst_bw_update->is_increase) dc->link_srv->increase_mst_payload (pipe_ctx, stream_update->mst_bw_update->mst_stream_bw); -else +else dc->link_srv->reduce_mst_payload (pipe_ctx, stream_update->mst_bw_update->mst_stream_bw); - } + }if (stream_update->pending_test_pattern) { dc_link_dp_set_test_pattern(stream->link,
Signature · 1 line
2.43.0
Re: [PATCH 1/2] drm/amd/display: clean inconsistent indenting
Quoted 25 lines · Joao Paulo Pereira da Silva
From: jppaulo <[email protected]>
Clean some wrong indenting that throw errors in checkpatch.
Signed-off-by Joao Paulo Pereira da Silva <[email protected]>--- drivers/gpu/drm/amd/display/dc/core/dc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc.c +1
-1@@ -962,7 +962,7 @@ static bool dc_construct(struct dc *dc, goto fail; } - dc_ctx = dc->ctx; + dc_ctx = dc->ctx;/* Resource should construct all asic specific resources. * This should be the only place where we need to parse the asic id @@ -3155,10 +3155,10 @@ static void commit_planes_do_stream_update(struct dc *dc,if (stream_update->mst_bw_update->is_increase) dc->link_srv->increase_mst_payload(pipe_ctx,
drivers/gpu/drm/amd/display/dc/core/dc.c static void commit_planes_do_stream_update(struct dc *dc, · line 3164
Quoted 10 lines
drivers/gpu/drm/amd/display/dc/core/dc.c +2
-2stream_update->mst_bw_update->mst_stream_bw); - else + else dc->link_srv->reduce_mst_payload(pipe_ctx, stream_update->mst_bw_update->mst_stream_bw); - } + }if (stream_update->pending_test_pattern) { dc_link_dp_set_test_pattern(stream->link,
Hi Joao,
Could part of this patch not apply to amd-staging-drm-next (the second part is already present)? Could you rebase your change and squash these two commits in a single one?
Thanks
Siqueira
PATCH 2/2 drm/amd/display: clean else not following close brace
In reply to Joao Paulo Pereira da SilvaFrom: jppaulo <[email protected]>
Put else statement in the same line and after the close brace.
--- drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_link_enc_cfg.c +1 -2
@@ -396,8 +396,7 @@ void link_enc_cfg_link_encs_assign( eng_id_req = stream->link->dpia_preferred_eng_id; eng_id =find_first_avail_link_enc (stream->ctx, state, eng_id_req); - } -else + }else eng_id = link_enc->preferred_engine;add_link_enc_assignment (state, stream, eng_id);
Signature · 1 line
2.43.0