aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-01-07 12:23:49 -0500
committerAlex Deucher <alexander.deucher@amd.com>2014-01-07 12:55:57 -0500
commitfbb74bcea8607b0e29e912008dcef0ffd97239e6 (patch)
treeb0f18d183fcf90c173b05d580c8efb87f36d2321
parent3b5da5cee6ed1f12fbc65b7eff1305d6a28e64d4 (diff)
drm/radeon/dpm: make some functions static for TN
Noticed by Rashika Kheria and cherry-picked from her larger patch set. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: Rashika Kheria <rashika.kheria@gmail.com>
-rw-r--r--drivers/gpu/drm/radeon/trinity_dpm.c4
-rw-r--r--drivers/gpu/drm/radeon/trinity_smc.c3
2 files changed, 2 insertions, 5 deletions
diff --git a/drivers/gpu/drm/radeon/trinity_dpm.c b/drivers/gpu/drm/radeon/trinity_dpm.c
index 0f4d70337e81..2d447192d6f7 100644
--- a/drivers/gpu/drm/radeon/trinity_dpm.c
+++ b/drivers/gpu/drm/radeon/trinity_dpm.c
@@ -342,14 +342,14 @@ static void trinity_apply_state_adjust_rules(struct radeon_device *rdev,
342 struct radeon_ps *new_rps, 342 struct radeon_ps *new_rps,
343 struct radeon_ps *old_rps); 343 struct radeon_ps *old_rps);
344 344
345struct trinity_ps *trinity_get_ps(struct radeon_ps *rps) 345static struct trinity_ps *trinity_get_ps(struct radeon_ps *rps)
346{ 346{
347 struct trinity_ps *ps = rps->ps_priv; 347 struct trinity_ps *ps = rps->ps_priv;
348 348
349 return ps; 349 return ps;
350} 350}
351 351
352struct trinity_power_info *trinity_get_pi(struct radeon_device *rdev) 352static struct trinity_power_info *trinity_get_pi(struct radeon_device *rdev)
353{ 353{
354 struct trinity_power_info *pi = rdev->pm.dpm.priv; 354 struct trinity_power_info *pi = rdev->pm.dpm.priv;
355 355
diff --git a/drivers/gpu/drm/radeon/trinity_smc.c b/drivers/gpu/drm/radeon/trinity_smc.c
index 9672bcbc7312..99dd0455334d 100644
--- a/drivers/gpu/drm/radeon/trinity_smc.c
+++ b/drivers/gpu/drm/radeon/trinity_smc.c
@@ -27,9 +27,6 @@
27#include "trinity_dpm.h" 27#include "trinity_dpm.h"
28#include "ppsmc.h" 28#include "ppsmc.h"
29 29
30struct trinity_ps *trinity_get_ps(struct radeon_ps *rps);
31struct trinity_power_info *trinity_get_pi(struct radeon_device *rdev);
32
33static int trinity_notify_message_to_smu(struct radeon_device *rdev, u32 id) 30static int trinity_notify_message_to_smu(struct radeon_device *rdev, u32 id)
34{ 31{
35 int i; 32 int i;