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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
From 88cb1446f04690d894772bf7a8797086e7fc3435 Mon Sep 17 00:00:00 2001
From: Harry Wentland <harry.wentland@amd.com>
Date: Wed, 17 Feb 2016 15:44:41 -0500
Subject: [PATCH 0829/1110] drm/amd/dal: Minor dm_helper type and include fixup
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
---
drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_helpers.c | 12 ++++++++----
drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c | 4 ++--
drivers/gpu/drm/amd/dal/dc/dm_helpers.h | 4 ++--
3 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_helpers.c
index 97a3206..e414861 100644
--- a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_helpers.c
+++ b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_helpers.c
@@ -40,6 +40,8 @@
#include "amdgpu_dm_irq.h"
#include "amdgpu_dm_types.h"
+#include "dm_helpers.h"
+
/* dm_helpers_parse_edid_caps
*
* Parse edid caps
@@ -459,12 +461,13 @@ void dm_helpers_dp_mst_stop_top_mgr(
#endif
}
-bool dm_helper_dp_read_dpcd(
+bool dm_helpers_dp_read_dpcd(
struct dc_context *ctx,
const struct dc_link *link,
uint32_t address,
uint8_t *data,
- uint32_t size) {
+ uint32_t size)
+{
struct amdgpu_device *adev = ctx->driver_context;
@@ -480,12 +483,13 @@ bool dm_helper_dp_read_dpcd(
data, size) > 0;
}
-bool dm_helper_dp_write_dpcd(
+bool dm_helpers_dp_write_dpcd(
struct dc_context *ctx,
const struct dc_link *link,
uint32_t address,
const uint8_t *data,
- uint32_t size) {
+ uint32_t size)
+{
struct amdgpu_device *adev = ctx->driver_context;
struct drm_device *dev = adev->ddev;
diff --git a/drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c b/drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c
index 04a0c17..f332185 100644
--- a/drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c
+++ b/drivers/gpu/drm/amd/dal/dc/core/dc_link_hwss.c
@@ -19,7 +19,7 @@ enum dc_status core_link_read_dpcd(
uint8_t *data,
uint32_t size)
{
- if (!dm_helper_dp_read_dpcd(link->ctx,
+ if (!dm_helpers_dp_read_dpcd(link->ctx,
&link->public,
address, data, size))
return DC_ERROR_UNEXPECTED;
@@ -33,7 +33,7 @@ enum dc_status core_link_write_dpcd(
const uint8_t *data,
uint32_t size)
{
- if (!dm_helper_dp_write_dpcd(link->ctx,
+ if (!dm_helpers_dp_write_dpcd(link->ctx,
&link->public,
address, data, size))
return DC_ERROR_UNEXPECTED;
diff --git a/drivers/gpu/drm/amd/dal/dc/dm_helpers.h b/drivers/gpu/drm/amd/dal/dc/dm_helpers.h
index faffc16..350dd11 100644
--- a/drivers/gpu/drm/amd/dal/dc/dm_helpers.h
+++ b/drivers/gpu/drm/amd/dal/dc/dm_helpers.h
@@ -78,7 +78,7 @@ void dm_helpers_dp_mst_stop_top_mgr(
/**
* OS specific aux read callback.
*/
-bool dm_helper_dp_read_dpcd(
+bool dm_helpers_dp_read_dpcd(
struct dc_context *ctx,
const struct dc_link *link,
uint32_t address,
@@ -88,7 +88,7 @@ bool dm_helper_dp_read_dpcd(
/**
* OS specific aux write callback.
*/
-bool dm_helper_dp_write_dpcd(
+bool dm_helpers_dp_write_dpcd(
struct dc_context *ctx,
const struct dc_link *link,
uint32_t address,
--
2.7.4
|