Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: Remove unused dc_stream_get_crtc_position

The last user of dc_stream_get_crtc_position() was
mod_freesync_get_v_position() which is removed in a previous
patch in this series.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Dr. David Alan Gilbert and committed by
Alex Deucher
fa883429 2d5e8a89

-39
-27
drivers/gpu/drm/amd/display/dc/core/dc.c
··· 516 516 return status; 517 517 } 518 518 519 - bool dc_stream_get_crtc_position(struct dc *dc, 520 - struct dc_stream_state **streams, int num_streams, 521 - unsigned int *v_pos, unsigned int *nom_v_pos) 522 - { 523 - /* TODO: Support multiple streams */ 524 - const struct dc_stream_state *stream = streams[0]; 525 - int i; 526 - bool ret = false; 527 - struct crtc_position position; 528 - 529 - dc_exit_ips_for_hw_access(dc); 530 - 531 - for (i = 0; i < MAX_PIPES; i++) { 532 - struct pipe_ctx *pipe = 533 - &dc->current_state->res_ctx.pipe_ctx[i]; 534 - 535 - if (pipe->stream == stream && pipe->stream_res.stream_enc) { 536 - dc->hwss.get_position(&pipe, 1, &position); 537 - 538 - *v_pos = position.vertical_count; 539 - *nom_v_pos = position.nominal_vcount; 540 - ret = true; 541 - } 542 - } 543 - return ret; 544 - } 545 - 546 519 #if defined(CONFIG_DRM_AMD_SECURE_DISPLAY) 547 520 static inline void 548 521 dc_stream_forward_dmub_crc_window(struct dc_dmub_srv *dmub_srv,
-12
drivers/gpu/drm/amd/display/dc/dc_stream.h
··· 528 528 struct dc_stream_state *stream, 529 529 uint32_t *refresh_rate); 530 530 531 - bool dc_stream_get_crtc_position(struct dc *dc, 532 - struct dc_stream_state **stream, 533 - int num_streams, 534 - unsigned int *v_pos, 535 - unsigned int *nom_v_pos); 536 - 537 531 #if defined(CONFIG_DRM_AMD_SECURE_DISPLAY) 538 532 bool dc_stream_forward_crc_window(struct dc_stream_state *stream, 539 533 struct rect *rect, ··· 571 577 572 578 bool dc_stream_program_csc_matrix(struct dc *dc, 573 579 struct dc_stream_state *stream); 574 - 575 - bool dc_stream_get_crtc_position(struct dc *dc, 576 - struct dc_stream_state **stream, 577 - int num_streams, 578 - unsigned int *v_pos, 579 - unsigned int *nom_v_pos); 580 580 581 581 struct pipe_ctx *dc_stream_get_pipe_ctx(struct dc_stream_state *stream); 582 582