drm/amdgpu: Move function amdgpu_has_atpx near other similar functions
Subsystems (2)
PATCH 1/1 drm/amdgpu: Move function amdgpu_has_atpx near other similar functions
Change-Id I1266af0697146369c9fb720b241bfa02280571c9
Signed-off-by Alex Xie <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +2 -0
@@ -1905,12 +1905,14 @@ void amdgpu_program_register_sequence(struct amdgpu_device *adev,bool amdgpu_has_atpx_dgpu_power_cntl (void );bool amdgpu_is_atpx_hybrid (void );bool amdgpu_atpx_dgpu_req_power_for_displays (void ); +bool amdgpu_has_atpx (void );#else static inline void amdgpu_register_atpx_handler (void ) {}static inline void amdgpu_unregister_atpx_handler (void ) {}static inline bool amdgpu_has_atpx_dgpu_power_cntl (void ) {return false; }static inline bool amdgpu_is_atpx_hybrid (void ) {return false; }static inline bool amdgpu_atpx_dgpu_req_power_for_displays (void ) {return false; } +static inline bool amdgpu_has_atpx (void ) {return false; }#endif /*
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +0 -6
@@ -36,12 +36,6 @@#include <linux/pm_runtime.h> #include "amdgpu_amdkfd.h" -#if defined(CONFIG_VGA_SWITCHEROO ) -bool amdgpu_has_atpx (void ); -#else -static inline bool amdgpu_has_atpx (void ) {return false; } -#endif -/** * amdgpu_driver_unload_kms - Main unload function for KMS. *
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1491339010-28278-1-git-send-email-AlexBin.Xie-5C7GfCeVMHo@public.gmane.org
Alex Deucher
Reviewed-byQuoted 2 lines · Alex Xie
Change-Id I1266af0697146369c9fb720b241bfa02280571c9Signed-off-by Alex Xie <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Quoted 44 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu.h +2
-0@@ -1905,12 +1905,14 @@ void amdgpu_program_register_sequence(struct amdgpu_device *adev,bool amdgpu_has_atpx_dgpu_power_cntl (void );bool amdgpu_is_atpx_hybrid (void );bool amdgpu_atpx_dgpu_req_power_for_displays (void ); +bool amdgpu_has_atpx (void );#else static inline void amdgpu_register_atpx_handler (void ) {}static inline void amdgpu_unregister_atpx_handler (void ) {}static inline bool amdgpu_has_atpx_dgpu_power_cntl (void ) {return false; }static inline bool amdgpu_is_atpx_hybrid (void ) {return false; }static inline bool amdgpu_atpx_dgpu_req_power_for_displays (void ) {return false; } +static inline bool amdgpu_has_atpx (void ) {return false; }#endif /* drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +0
-7@@ -36,12 +36,6 @@#include <linux/pm_runtime.h> #include "amdgpu_amdkfd.h" -#if defined(CONFIG_VGA_SWITCHEROO ) -bool amdgpu_has_atpx (void ); -#else -static inline bool amdgpu_has_atpx (void ) {return false; } -#endif -/** * amdgpu_driver_unload_kms - Main unload function for KMS. * -- 1.9.1
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx