drm/radeon: additional gcc fixes for radeon_atombios.c
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2013 21:46:00 +0000 (17:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Sep 2013 18:28:15 +0000 (14:28 -0400)
commita7ee824a6255e347ea76e2f00827e81bbe01004e
tree0a75a7876ca1ba59fb14dc9b8445ea0d76e54352
parent4ca5a6cba53e13b8fd153b0762b4128fab6a3cfb
drm/radeon: additional 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.

Fix up spread spectrum tables.

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