drm/radeon/dpm: simplify state adjust logic for NI
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Nov 2013 15:16:31 +0000 (10:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Dec 2013 22:50:46 +0000 (17:50 -0500)
commitd444af2dec2e3b9d10941aeabdbdb92fefe4183f
treebb2e3601844492ec87128281186c79b20e781f99
parent9c57a6bd3ea4a9870a7ce2fd961da6ef4986bbc1
drm/radeon/dpm: simplify state adjust logic for NI

This is based on a similar patch from Alexandre Demers.
While fixing up some warnings with that patch I saw some
additional cleanups that could be applied.  This patch
simplifies the logic for patching the power state.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Alexandre Demers <alexandre.f.demers@gmail.com>
drivers/gpu/drm/radeon/ni_dpm.c