drm/radeon: gcc fixes for kb/kv dpm
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Aug 2013 23:09:54 +0000 (19:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2013 20:31:22 +0000 (16:31 -0400)
commit9af37a7d4e195119ecfd570d02d17d4d159da912
tree58c6cec915081160bc25b7e7b5cb2a11e89c9829
parentb309ed98672705729bce271efb60f530290bbffd
drm/radeon: gcc fixes for kb/kv 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/kv_dpm.c