drm/amdgpu: simplify ATPX detection
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Oct 2019 19:39:37 +0000 (14:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2019 19:51:39 +0000 (15:51 -0400)
commitf5fda6d89afe6e9cedaa1c3303903c905262f6e8
treed4927f0bd46b6d074d65bb89b8fc3bf5da1a236f
parent897483d8a0e0896b214bda374e67373ee01166a6
drm/amdgpu: simplify ATPX detection

Use the base class rather than the specific class and drop
the second loop.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c