Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: Remove unused amdgpu_atpx functions

amdgpu_atpx_dgpu_req_power_for_displays has been unused since
commit bdb1ccb080da ("drm/amdgpu: remove ATPX_DGPU_REQ_POWER_FOR_DISPLAYS
check when hotplug-in")

amdgpu_atpx_get_dhandle has been unused since commit
f9b7f3703ff9 ("drm/amdgpu/acpi: make ATPX/ATCS structures global (v2)")

Remove them.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Dr. David Alan Gilbert and committed by
Alex Deucher
6e261ecb 632aac62

-20
-8
drivers/gpu/drm/amd/amdgpu/amdgpu.h
··· 1474 1474 void amdgpu_unregister_atpx_handler(void); 1475 1475 bool amdgpu_has_atpx_dgpu_power_cntl(void); 1476 1476 bool amdgpu_is_atpx_hybrid(void); 1477 - bool amdgpu_atpx_dgpu_req_power_for_displays(void); 1478 1477 bool amdgpu_has_atpx(void); 1479 1478 #else 1480 1479 static inline void amdgpu_register_atpx_handler(void) {} 1481 1480 static inline void amdgpu_unregister_atpx_handler(void) {} 1482 1481 static inline bool amdgpu_has_atpx_dgpu_power_cntl(void) { return false; } 1483 1482 static inline bool amdgpu_is_atpx_hybrid(void) { return false; } 1484 - static inline bool amdgpu_atpx_dgpu_req_power_for_displays(void) { return false; } 1485 1483 static inline bool amdgpu_has_atpx(void) { return false; } 1486 - #endif 1487 - 1488 - #if defined(CONFIG_VGA_SWITCHEROO) && defined(CONFIG_ACPI) 1489 - void *amdgpu_atpx_get_dhandle(void); 1490 - #else 1491 - static inline void *amdgpu_atpx_get_dhandle(void) { return NULL; } 1492 1484 #endif 1493 1485 1494 1486 /*
-12
drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
··· 89 89 return amdgpu_atpx_priv.atpx.is_hybrid; 90 90 } 91 91 92 - bool amdgpu_atpx_dgpu_req_power_for_displays(void) 93 - { 94 - return amdgpu_atpx_priv.atpx.dgpu_req_power_for_displays; 95 - } 96 - 97 - #if defined(CONFIG_ACPI) 98 - void *amdgpu_atpx_get_dhandle(void) 99 - { 100 - return amdgpu_atpx_priv.dhandle; 101 - } 102 - #endif 103 - 104 92 /** 105 93 * amdgpu_atpx_call - call an ATPX method 106 94 *