drm/radeon: gcc fixes for rv6xx dpm
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Aug 2013 22:47:07 +0000 (18:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:31:17 +0000 (16:31 -0400)
commitaa842d736e29439d6f1a1478cd7c780d972f7cc5
treee8242d4940039070a8878628c6405e6faf7e2c8e
parent607f2c2791ec81e5abca6213ff037e9405378be1
drm/radeon: gcc fixes for rv6xx 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/rv6xx_dpm.c