]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
amdgpu/dc: make program_regamma_pwl return void
authorDave Airlie <airlied@redhat.com>
Fri, 29 Sep 2017 04:34:35 +0000 (14:34 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Sep 2017 17:02:08 +0000 (13:02 -0400)
The return value was unused.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_transform.c
drivers/gpu/drm/amd/display/dc/dce/dce_transform.h
drivers/gpu/drm/amd/display/dc/dce110/dce110_opp_regamma_v.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_transform_v.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c
drivers/gpu/drm/amd/display/dc/inc/hw/transform.h

index c40d2e9e5f7c4bd6a4b6d20a0e78494cece27d74..ae32af31eff1ee4185e04d8051075643682936ad 100644 (file)
@@ -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(
index e1f1e5129f8644987f186c99e627819b8ec88a1b..bfc94b4927b9e49d1f26b4118dd82c8b8533751e 100644 (file)
@@ -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);
 
index c86105b8cfaff8f188eecb7a5be3216961f27485..e98ed3058ea2566453b47643af42d51335b45797 100644 (file)
@@ -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(
index eeed3b9f90f79e107c672f0f753405ec072a74c2..b70780210aadbdaa5b4c63c0ea7ea3341f48142d 100644 (file)
@@ -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);
 
index ac03b04f1ea5d33f2aaa6c24bec2c180b676ce2b..8607ab2da61098ca9ef9031ccc9d3cec9c8a7a44 100644 (file)
@@ -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(
index 9d4a3a0098a9ca97293ff636393875d3bb39c8b0..785d39706832088f0844305c190fc3da3ebd2bc4 100644 (file)
@@ -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)(