From: Dmytro Laktyushkin <Dmytro.Laktyushkin@xxxxxxx> Change-Id: I87543da0cde5fbaf6617f14ac95933cfe68379c2 Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin at amd.com> Acked-by: Harry Wentland <harry.wentland at amd.com> --- drivers/gpu/drm/amd/dal/dc/dce110/dce110_transform_scl.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/dal/dc/dce110/dce110_transform_scl.c b/drivers/gpu/drm/amd/dal/dc/dce110/dce110_transform_scl.c index db2be4bc639c..3a782e7a1b60 100644 --- a/drivers/gpu/drm/amd/dal/dc/dce110/dce110_transform_scl.c +++ b/drivers/gpu/drm/amd/dal/dc/dce110/dce110_transform_scl.c @@ -39,14 +39,6 @@ #define CTX \ xfm110->base.ctx -static void dce110_transform_set_scaler_bypass( - struct transform *xfm, - const struct scaler_data *scl_data) -{ - struct dce110_transform *xfm110 = TO_DCE110_TRANSFORM(xfm); - - REG_UPDATE_2(SCL_MODE, SCL_MODE, 0, SCL_PSCL_EN, 0); -} static bool setup_scaling_configuration( struct dce110_transform *xfm110, @@ -55,7 +47,8 @@ static bool setup_scaling_configuration( struct dc_context *ctx = xfm110->base.ctx; if (data->taps.h_taps + data->taps.v_taps <= 2) { - dce110_transform_set_scaler_bypass(&xfm110->base, NULL); + /* Set bypass */ + REG_UPDATE_2(SCL_MODE, SCL_MODE, 0, SCL_PSCL_EN, 0); return false; } -- 2.10.1