Commit 12e27be852db6d3e701e5563f394d6c7aa7aa778

Authored by Daniel J Blueman
Committed by Dave Airlie
1 parent fc0f5ac8fe

drm/radeon/kms: fix radeon mid power profile reporting

Fix incorrectly reporting 'default' power profile, when it is set to 'mid'.

Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com>
Reviewed-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/gpu/drm/radeon/radeon_pm.c
... ... @@ -333,6 +333,7 @@
333 333 return snprintf(buf, PAGE_SIZE, "%s\n",
334 334 (cp == PM_PROFILE_AUTO) ? "auto" :
335 335 (cp == PM_PROFILE_LOW) ? "low" :
  336 + (cp == PM_PROFILE_MID) ? "mid" :
336 337 (cp == PM_PROFILE_HIGH) ? "high" : "default");
337 338 }
338 339