git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm/amdgpu: Add amdgpu_atpx_get_dhandle()
[sfrench/cifs-2.6.git]
/
drivers
/
gpu
/
drm
/
amd
/
amdgpu
/
amdgpu_atpx_handler.c
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
index a3896412a019a33085cdf0f67e3ac869cfe5b085..b33f1680c9a322c6eb90b3f42159d35d85ca6953 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
@@
-90,6
+90,12
@@
bool amdgpu_atpx_dgpu_req_power_for_displays(void) {
return amdgpu_atpx_priv.atpx.dgpu_req_power_for_displays;
}
+#if defined(CONFIG_ACPI)
+void *amdgpu_atpx_get_dhandle(void) {
+ return amdgpu_atpx_priv.dhandle;
+}
+#endif
+
/**
* amdgpu_atpx_call - call an ATPX method
*