From: Andrey Grodzovsky Date: Tue, 23 May 2017 00:25:48 +0000 (-0400) Subject: drm/amd/display: Clean unused interface. X-Git-Tag: microblaze-4.16-rc1~302^2~23^2~460 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=893a2dd4a3ffceb3b3fa88353d8270de06195b10;p=linux-2.6-microblaze.git drm/amd/display: Clean unused interface. Signed-off-by: Andrey Grodzovsky Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 4900e8073c69..f5349970b594 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -249,47 +249,6 @@ static void set_static_screen_events(struct dc *dc, core_dc->hwss.set_static_screen_control(pipes_affected, num_pipes_affected, events); } -/* This function is not expected to fail, proper implementation of - * validation will prevent this from ever being called for unsupported - * configurations. - */ -static void stream_update_scaling( - const struct dc *dc, - const struct dc_stream *dc_stream, - const struct rect *src, - const struct rect *dst) -{ - struct core_stream *stream = DC_STREAM_TO_CORE(dc_stream); - struct core_dc *core_dc = DC_TO_CORE(dc); - struct validate_context *cur_ctx = core_dc->current_context; - int i; - - if (src) - stream->public.src = *src; - - if (dst) - stream->public.dst = *dst; - - for (i = 0; i < cur_ctx->stream_count; i++) { - struct core_stream *cur_stream = cur_ctx->streams[i]; - - if (stream == cur_stream) { - struct dc_stream_status *status = &cur_ctx->stream_status[i]; - - if (status->surface_count) - if (!dc_commit_surfaces_to_stream( - &core_dc->public, - status->surfaces, - status->surface_count, - &cur_stream->public)) - /* Need to debug validation */ - BREAK_TO_DEBUGGER(); - - return; - } - } -} - static void set_drive_settings(struct dc *dc, struct link_training_settings *lt_settings, const struct dc_link *link) @@ -402,7 +361,6 @@ void set_dither_option(const struct dc_stream *dc_stream, static void allocate_dc_stream_funcs(struct core_dc *core_dc) { - core_dc->public.stream_funcs.stream_update_scaling = stream_update_scaling; if (core_dc->hwss.set_drr != NULL) { core_dc->public.stream_funcs.adjust_vmin_vmax = stream_adjust_vmin_vmax; diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index 3b35487897b7..0d3b73a37df1 100644 --- a/drivers/gpu/drm/amd/display/dc/dc.h +++ b/drivers/gpu/drm/amd/display/dc/dc.h @@ -115,12 +115,6 @@ struct dc_stream_funcs { unsigned int *v_pos, unsigned int *nom_v_pos); - - void (*stream_update_scaling)(const struct dc *dc, - const struct dc_stream *dc_stream, - const struct rect *src, - const struct rect *dst); - bool (*set_gamut_remap)(struct dc *dc, const struct dc_stream *stream);