OSDN Git Service

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)
commitf9b7f3703ff97768a8dfabd42bdb107681f1da22
tree58abd2dd2cf1da563cebc03ee4fd404c32ce8852
parentf1688bd69ec4b07eda1657ff953daebce7cfabf6
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