1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
From c73870b30871024f472a9806d5eca5980d8317d3 Mon Sep 17 00:00:00 2001
From: Harry Wentland <harry.wentland@amd.com>
Date: Wed, 4 Jan 2017 18:41:25 -0500
Subject: [PATCH 0121/4131] 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>
---
drivers/gpu/drm/amd/display/dc/calcs/gamma_calcs.c | 39 ----------------------
1 file changed, 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 ca2234e..fd300db 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,
--
2.7.4
|