Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12e27be8 authored by Daniel J Blueman's avatar Daniel J Blueman Committed by Dave Airlie
Browse files

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



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

Signed-off-by: default avatarDaniel J Blueman <daniel.blueman@gmail.com>
Reviewed-by: default avatarAlex Deucher <alexdeucher@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent fc0f5ac8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -333,6 +333,7 @@ static ssize_t radeon_get_pm_profile(struct device *dev,
	return snprintf(buf, PAGE_SIZE, "%s\n",
			(cp == PM_PROFILE_AUTO) ? "auto" :
			(cp == PM_PROFILE_LOW) ? "low" :
			(cp == PM_PROFILE_MID) ? "mid" :
			(cp == PM_PROFILE_HIGH) ? "high" : "default");
}