Skip to content

Commit ddef2cf

Browse files
Rodrigo Siqueiraalexdeucher
authored andcommitted
drm/amd/display: Remove unused code
This commit removes some unused code with the required adjustments. Signed-off-by: Rodrigo Siqueira <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 2998bcc commit ddef2cf

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

drivers/gpu/drm/amd/display/dc/dc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,6 @@ struct dc_plane_state *dc_get_surface_for_mpcc(struct dc *dc,
15871587
uint32_t dc_get_opp_for_plane(struct dc *dc, struct dc_plane_state *plane);
15881588

15891589
void dc_set_disable_128b_132b_stream_overhead(bool disable);
1590-
bool dc_get_disable_128b_132b_stream_overhead(void);
15911590

15921591
/* The function returns minimum bandwidth required to drive a given timing
15931592
* return - minimum required timing bandwidth in kbps.

drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,4 +726,4 @@ void dpp401_set_cursor_matrix(
726726
enum dc_color_space color_space,
727727
struct dc_csc_transform cursor_csc_color_matrix);
728728

729-
#endif
729+
#endif /* __DCN401_DPP_H__ */

drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,11 +1261,6 @@ void dc_set_disable_128b_132b_stream_overhead(bool disable)
12611261
disable_128b_132b_stream_overhead = disable;
12621262
}
12631263

1264-
bool dc_get_disable_128b_132b_stream_overhead(void)
1265-
{
1266-
return disable_128b_132b_stream_overhead;
1267-
}
1268-
12691264
void dc_dsc_get_default_config_option(const struct dc *dc, struct dc_dsc_config_options *options)
12701265
{
12711266
options->dsc_min_slice_height_override = dc->debug.dsc_min_slice_height_override;

drivers/gpu/drm/amd/display/dc/hubbub/dcn401/dcn401_hubbub.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -880,12 +880,8 @@ static void dcn401_program_compbuf_segments(struct hubbub *hubbub, unsigned comp
880880
+ hubbub2->det3_size + compbuf_size_seg <= hubbub2->crb_size_segs);
881881
REG_UPDATE(DCHUBBUB_COMPBUF_CTRL, COMPBUF_SIZE, compbuf_size_seg);
882882
hubbub2->compbuf_size_segments = compbuf_size_seg;
883-
#ifdef DIAGS_BUILD
884-
REG_GET(DCHUBBUB_COMPBUF_CTRL, CONFIG_ERROR, &cur_compbuf_size_seg);
885-
ASSERT(!cur_compbuf_size_seg);
886-
#else
883+
887884
ASSERT(REG_GET(DCHUBBUB_COMPBUF_CTRL, CONFIG_ERROR, &cur_compbuf_size_seg) && !cur_compbuf_size_seg);
888-
#endif
889885
}
890886
}
891887

0 commit comments

Comments
 (0)