drm/radeon: gcc fixes for radeon_atombios.c
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Aug 2013 22:40:46 +0000 (18:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:31:16 +0000 (16:31 -0400)
commit607f2c2791ec81e5abca6213ff037e9405378be1
treee5b58ee5885e40f72cee7efb28227652221aaa77
parent6a3808b8233eb91b57c230cf1161ac116a189ffd
drm/radeon: gcc fixes for radeon_atombios.c

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