Revert "drm/[radeon|amdgpu]: Replace one-element array and use struct_size() helper"
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Jun 2020 19:08:39 +0000 (15:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:16 +0000 (01:59 -0400)
commiteb0b5d6fdb0b000fac3446b6ad7ac744e9114cab
tree7ccf956b0b998b7c6fc8d1432622d766799005b2
parentf86c9b8b56a74b2d0d3543339b2ac52b75b2237e
Revert "drm/[radeon|amdgpu]: Replace one-element array and use struct_size() helper"

This reverts commit 4541ea81edde6ce9a1d9be082489aca7e8e7e1dc.

This changes structs used by the hardware and breaks dpm on some cards.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/si_dpm.c
drivers/gpu/drm/amd/amdgpu/sislands_smc.h
drivers/gpu/drm/radeon/si_dpm.c