diff options
author | Harry Wentland <harry.wentland@amd.com> | 2017-01-04 18:41:25 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 17:08:33 -0400 |
commit | 7a8b8b1403a115fe303e67d356df7520095222d4 (patch) | |
tree | be98a4716b12f310c27e6924ced0143dff32e730 | |
parent | 7abcf6b5043a94e850d8f38b625fd022492e8303 (diff) | |
download | linux-stable-7a8b8b1403a115fe303e67d356df7520095222d4.tar.gz linux-stable-7a8b8b1403a115fe303e67d356df7520095222d4.tar.bz2 linux-stable-7a8b8b1403a115fe303e67d356df7520095222d4.zip |
drm/amd/display: Remove unused function in gamma_calcs
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/calcs/gamma_calcs.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/calcs/gamma_calcs.c b/drivers/gpu/drm/amd/display/dc/calcs/gamma_calcs.c index ca2234e4b7d2..fd300db833c7 100644 --- a/drivers/gpu/drm/amd/display/dc/calcs/gamma_calcs.c +++ b/drivers/gpu/drm/amd/display/dc/calcs/gamma_calcs.c @@ -185,45 +185,6 @@ static bool setup_custom_float( return true; } -static bool convert_to_custom_float_format_ex( - struct fixed31_32 value, - const struct custom_float_format *format, - struct custom_float_value *result) -{ - return build_custom_float( - value, format, - &result->negative, &result->mantissa, &result->exponenta) && - setup_custom_float( - format, result->negative, result->mantissa, result->exponenta, - &result->value); -} - -static bool round_custom_float_6_12( - struct hw_x_point *x) -{ - struct custom_float_format fmt; - - struct custom_float_value value; - - fmt.exponenta_bits = 6; - fmt.mantissa_bits = 12; - fmt.sign = true; - - if (!convert_to_custom_float_format_ex( - x->x, &fmt, &value)) - return false; - - x->adjusted_x = x->x; - - if (value.mantissa) { - BREAK_TO_DEBUGGER(); - - return false; - } - - return true; -} - static bool build_hw_curve_configuration( const struct curve_config *curve_config, struct gamma_curve *gamma_curve, |