amdgpu/pp: use array_size to size the pwrvirus tables.
authorDave Airlie <airlied@redhat.com>
Fri, 29 Sep 2017 01:12:30 +0000 (11:12 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Sep 2017 16:24:37 +0000 (12:24 -0400)
commitce27643cc0f56f7a70de17c2ef54541ad4252c1a
treebc54458eb718e90141c6a56c5258c8b01fecd747
parentd81a2209498b6349a33f8741ca5a062dde84c043
amdgpu/pp: use array_size to size the pwrvirus tables.

This avoids fragile hardcoding of array size.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/inc/fiji_pwrvirus.h
drivers/gpu/drm/amd/powerplay/inc/polaris10_pwrvirus.h
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c