]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/acpi: make ATPX/ATCS structures global (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 25 May 2021 21:40:58 +0000 (17:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 May 2021 16:33:52 +0000 (12:33 -0400)
commitf9182ccba2670e3037a6c2dbf1e922a500d6bf68
tree58abd2dd2cf1da563cebc03ee4fd404c32ce8852
parentec5539a63b60564f9fc9d879b3af3500ea23caa1
drm/amdgpu/acpi: make ATPX/ATCS structures global (v2)

They are global ACPI methods, so maybe the structures
global in the driver. This simplified a number of things
in the handling of these methods.

v2: reset the handle if verify interface fails (Lijo)
v3: fix compilation when ACPI is not defined.

Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c