drm/radeon: gcc fixes for sumo dpm
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Aug 2013 22:59:41 +0000 (18:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:31:19 +0000 (16:31 -0400)
commitd5222ae7ad719c7afe957ae382d5e71ecffe0f7d
treee7dfd3ea9bf8931b03f527b8b8c6938359ba501b
parentbdcc031bc7c2d0f1986237c8cea6871cfebf0853
drm/radeon: gcc fixes for sumo 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/sumo_dpm.c