drm/radeon: gcc fixes for extended dpm tables
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Aug 2013 19:28:42 +0000 (15:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:31:23 +0000 (16:31 -0400)
commit5b7d245009e734588e553092f5c0b0bd788b3a55
tree8639367c7c930428dc185b81ad924dc3d2f9f4a9
parent9af37a7d4e195119ecfd570d02d17d4d159da912
drm/radeon: gcc fixes for extended dpm tables

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/r600_dpm.c