drm/radeon: gcc fixes for ni dpm
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Aug 2013 23:04:02 +0000 (19:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:31:20 +0000 (16:31 -0400)
commit1e05c4d918b9d08167773cdd6edb05dde0975b40
tree41fe2aba807f9e16818aa140f46c28fa5587a599
parent5e250d20c2b6ed0c5d1f3632c266eba4a7f979ba
drm/radeon: gcc fixes for ni dpm

Newer versions of gcc seem to wander off into the
weeds when dealing with variable sizes arrays in
structs.  Rather than indexing the arrays, use
pointer arithmetic.

See bugs:
https://bugs.freedesktop.org/show_bug.cgi?id=66932
https://bugs.freedesktop.org/show_bug.cgi?id=66972
https://bugs.freedesktop.org/show_bug.cgi?id=66945

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/ni_dpm.c