Skip to content

Commit

Permalink
drm/amd/display: Remove unused function in gamma_calcs
Browse files Browse the repository at this point in the history
Change-Id: I80cd95f412679f56ecc71a8c13f62e7da88912f9
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
  • Loading branch information
Harry Wentland authored and Alex Deucher committed Jan 9, 2017
1 parent 1a20d4c commit 3a1d107
Showing 1 changed file with 0 additions and 39 deletions.
39 changes: 0 additions & 39 deletions drivers/gpu/drm/amd/display/dc/calcs/gamma_calcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3a1d107

Please sign in to comment.