diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2018-03-16 01:56:18 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-03-19 14:35:22 -0400 |
commit | 9281c1f8a470263f8e7091027c729b36b0783eed (patch) | |
tree | c6ffd0e6495b884b0143bce89e41abeeea43adfa /drivers | |
parent | 0b10f20022b371633a34218265138e3f44f4b98d (diff) |
drm/amd/pp: Mark bunches of functins in vega10_smumgr.c static
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h | 3 |
2 files changed, 5 insertions, 8 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c index b03a9a09f7ed..d40edd5352e6 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c | |||
@@ -101,7 +101,7 @@ static uint32_t vega10_wait_for_response(struct pp_hwmgr *hwmgr) | |||
101 | * @param msg the message to send. | 101 | * @param msg the message to send. |
102 | * @return Always return 0. | 102 | * @return Always return 0. |
103 | */ | 103 | */ |
104 | int vega10_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr, | 104 | static int vega10_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr, |
105 | uint16_t msg) | 105 | uint16_t msg) |
106 | { | 106 | { |
107 | uint32_t reg; | 107 | uint32_t reg; |
@@ -119,7 +119,7 @@ int vega10_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr, | |||
119 | * @param msg the message to send. | 119 | * @param msg the message to send. |
120 | * @return Always return 0. | 120 | * @return Always return 0. |
121 | */ | 121 | */ |
122 | int vega10_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) | 122 | static int vega10_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) |
123 | { | 123 | { |
124 | uint32_t reg; | 124 | uint32_t reg; |
125 | uint32_t ret; | 125 | uint32_t ret; |
@@ -146,7 +146,7 @@ int vega10_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) | |||
146 | * @param parameter: the parameter to send | 146 | * @param parameter: the parameter to send |
147 | * @return Always return 0. | 147 | * @return Always return 0. |
148 | */ | 148 | */ |
149 | int vega10_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, | 149 | static int vega10_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, |
150 | uint16_t msg, uint32_t parameter) | 150 | uint16_t msg, uint32_t parameter) |
151 | { | 151 | { |
152 | uint32_t reg; | 152 | uint32_t reg; |
@@ -266,7 +266,7 @@ int vega10_enable_smc_features(struct pp_hwmgr *hwmgr, | |||
266 | msg, feature_mask); | 266 | msg, feature_mask); |
267 | } | 267 | } |
268 | 268 | ||
269 | int vega10_get_smc_features(struct pp_hwmgr *hwmgr, | 269 | static int vega10_get_smc_features(struct pp_hwmgr *hwmgr, |
270 | uint32_t *features_enabled) | 270 | uint32_t *features_enabled) |
271 | { | 271 | { |
272 | if (features_enabled == NULL) | 272 | if (features_enabled == NULL) |
@@ -289,7 +289,7 @@ static bool vega10_is_dpm_running(struct pp_hwmgr *hwmgr) | |||
289 | return false; | 289 | return false; |
290 | } | 290 | } |
291 | 291 | ||
292 | int vega10_set_tools_address(struct pp_hwmgr *hwmgr) | 292 | static int vega10_set_tools_address(struct pp_hwmgr *hwmgr) |
293 | { | 293 | { |
294 | struct vega10_smumgr *priv = | 294 | struct vega10_smumgr *priv = |
295 | (struct vega10_smumgr *)(hwmgr->smu_backend); | 295 | (struct vega10_smumgr *)(hwmgr->smu_backend); |
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h index 01b4f5b84c86..1f7f1373d10e 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h +++ b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h | |||
@@ -58,10 +58,7 @@ int vega10_copy_table_to_smc(struct pp_hwmgr *hwmgr, | |||
58 | uint8_t *table, int16_t table_id); | 58 | uint8_t *table, int16_t table_id); |
59 | int vega10_enable_smc_features(struct pp_hwmgr *hwmgr, | 59 | int vega10_enable_smc_features(struct pp_hwmgr *hwmgr, |
60 | bool enable, uint32_t feature_mask); | 60 | bool enable, uint32_t feature_mask); |
61 | int vega10_get_smc_features(struct pp_hwmgr *hwmgr, | ||
62 | uint32_t *features_enabled); | ||
63 | 61 | ||
64 | int vega10_set_tools_address(struct pp_hwmgr *hwmgr); | ||
65 | 62 | ||
66 | #endif | 63 | #endif |
67 | 64 | ||