From 4dec2aa9eb1386e592d76f380360360178c4af02 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 29 Sep 2017 14:34:35 +1000 Subject: [PATCH] amdgpu/dc: make program_regamma_pwl return void The return value was unused. Signed-off-by: Dave Airlie Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/dce/dce_transform.c | 4 +--- drivers/gpu/drm/amd/display/dc/dce/dce_transform.h | 2 +- drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_regamma_v.c | 4 +--- drivers/gpu/drm/amd/display/dc/dce110/dce110_transform_v.h | 2 +- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c | 4 +--- drivers/gpu/drm/amd/display/dc/inc/hw/transform.h | 2 +- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c index c40d2e9e5f7c..ae32af31eff1 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c @@ -1375,7 +1375,7 @@ static void regamma_config_regions_and_segments( -bool dce110_opp_program_regamma_pwl( +void dce110_opp_program_regamma_pwl( struct transform *xfm, const struct pwl_params *params) { @@ -1386,8 +1386,6 @@ bool dce110_opp_program_regamma_pwl( /* Program PWL */ program_pwl(xfm_dce, params); - - return true; } void dce110_opp_power_on_regamma_lut( diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.h b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.h index e1f1e5129f86..bfc94b4927b9 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.h +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.h @@ -506,7 +506,7 @@ void dce110_opp_power_on_regamma_lut( struct transform *xfm, bool power_on); -bool dce110_opp_program_regamma_pwl( +void dce110_opp_program_regamma_pwl( struct transform *xfm, const struct pwl_params *params); diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_regamma_v.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_regamma_v.c index c86105b8cfaf..e98ed3058ea2 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_regamma_v.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_regamma_v.c @@ -490,7 +490,7 @@ static void program_pwl(struct dce_transform *xfm_dce, } } -bool dce110_opp_program_regamma_pwl_v( +void dce110_opp_program_regamma_pwl_v( struct transform *xfm, const struct pwl_params *params) { @@ -512,8 +512,6 @@ bool dce110_opp_program_regamma_pwl_v( /* Power return to auto back */ power_on_lut(xfm, false, false, true); - - return true; } void dce110_opp_power_on_regamma_lut_v( diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_transform_v.h b/drivers/gpu/drm/amd/display/dc/dce110/dce110_transform_v.h index eeed3b9f90f7..b70780210aad 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_transform_v.h +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_transform_v.h @@ -43,7 +43,7 @@ void dce110_opp_v_set_csc_adjustment( const struct out_csc_color_matrix *tbl_entry); -bool dce110_opp_program_regamma_pwl_v( +void dce110_opp_program_regamma_pwl_v( struct transform *xfm, const struct pwl_params *params); diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c index ac03b04f1ea5..8607ab2da610 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c @@ -183,7 +183,7 @@ void dpp_reset(struct transform *xfm_base) -static bool dcn10_dpp_cm_set_regamma_pwl( +static void dcn10_dpp_cm_set_regamma_pwl( struct transform *xfm_base, const struct pwl_params *params) { struct dcn10_dpp *xfm = TO_DCN10_DPP(xfm_base); @@ -198,8 +198,6 @@ static bool dcn10_dpp_cm_set_regamma_pwl( dcn10_dpp_cm_program_regamma_lut( xfm_base, params->rgb_resulted, params->hw_points_num); - - return true; } static void dcn10_dpp_cm_set_regamma_mode( diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/transform.h b/drivers/gpu/drm/amd/display/dc/inc/hw/transform.h index 9d4a3a0098a9..785d39706832 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/transform.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/transform.h @@ -213,7 +213,7 @@ struct transform_funcs { struct transform *xfm, const struct pwl_params *params); - bool (*opp_program_regamma_pwl)( + void (*opp_program_regamma_pwl)( struct transform *xfm, const struct pwl_params *params); void (*opp_set_regamma_mode)(