Skip to content
Commit 694d0775 authored by David Francis's avatar David Francis Committed by Alex Deucher
Browse files

drm/amd: Don't fail on backlight = 0



Amgpu's backlight update status function was
returning 1 (an error value) when the backlight
property was 0.  This breaks users that assume
0 is a valid backlight value (which is a
correct assumption)

If the user passes in a backlight value of 0,
tell them everything is fine, then write a value of
1 to hardware.

Signed-off-by: default avatarDavid Francis <David.Francis@amd.com>
Bugzilla: https://bugs.freedesktop.org/108668


Fixes: 416615ea9578 ("drm/amd/display: set backlight level limit to 1")
Cc: Suresh.Guttula@amd.com
Cc: Harry.Wentland@amd.com
Cc: Samantham@posteo.net
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 45cf8c23
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment