]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: move struct amd_powerplay to amdgpu.h
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 29 Sep 2017 08:07:14 +0000 (16:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Dec 2017 21:33:17 +0000 (16:33 -0500)
Clean up the interface.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h

index 34268aac6b9a81afc93f06681530e2ab6ba3a799..cfc0f78c2445d94869d7890ead0336d2dde60e7a 100644 (file)
@@ -1423,6 +1423,13 @@ typedef void (*amdgpu_wreg_t)(struct amdgpu_device*, uint32_t, uint32_t);
 typedef uint32_t (*amdgpu_block_rreg_t)(struct amdgpu_device*, uint32_t, uint32_t);
 typedef void (*amdgpu_block_wreg_t)(struct amdgpu_device*, uint32_t, uint32_t, uint32_t);
 
+struct amd_powerplay {
+       struct cgs_device *cgs_device;
+       void *pp_handle;
+       const struct amd_ip_funcs *ip_funcs;
+       const struct amd_pm_funcs *pp_funcs;
+};
+
 #define AMDGPU_RESET_MAGIC_NUM 64
 struct amdgpu_device {
        struct device                   *dev;
index 006954e6531accf877d9078fe5bc1a4eb4304bc5..47478e09f0b9952a8c0eb0c706fd659f0e4576b9 100644 (file)
@@ -122,12 +122,5 @@ struct pp_gpu_power {
                                                                support << PP_STATE_SUPPORT_SHIFT |\
                                                                state << PP_STATE_SHIFT)
 
-struct amd_powerplay {
-       struct cgs_device *cgs_device;
-       void *pp_handle;
-       const struct amd_ip_funcs *ip_funcs;
-       const struct amd_pm_funcs *pp_funcs;
-};
-
 
 #endif /* _AMD_POWERPLAY_H_ */