diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2022-07-19 14:18:41 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-11-15 11:51:45 -0500 |
commit | d09ef243035b75a6d403ebfeb7e87fa20d7e25c6 (patch) | |
tree | 9bd53561c6484cf80b6132ca9b1fbe17ec043606 /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
parent | a347ca9720335028686b16302bd0d2075880b3d7 (diff) | |
download | linux-d09ef243035b75a6d403ebfeb7e87fa20d7e25c6.tar.gz linux-d09ef243035b75a6d403ebfeb7e87fa20d7e25c6.tar.bz2 linux-d09ef243035b75a6d403ebfeb7e87fa20d7e25c6.zip |
drm/amdgpu: clarify DC checks
There are several places where we don't want to check
if a particular asic could support DC, but rather, if
DC is enabled. Set a flag if DC is enabled and check
for that rather than if a device supports DC or not.
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c index b14800ac179e..57b5e11446c6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c @@ -847,7 +847,7 @@ int amdgpu_acpi_init(struct amdgpu_device *adev) struct amdgpu_atif *atif = &amdgpu_acpi_priv.atif; if (atif->notifications.brightness_change) { - if (amdgpu_device_has_dc_support(adev)) { + if (adev->dc_enabled) { #if defined(CONFIG_DRM_AMD_DC) struct amdgpu_display_manager *dm = &adev->dm; |