OSDN Git Service

drm/amd: Don't fail on backlight = 0
authorDavid Francis <David.Francis@amd.com>
Tue, 6 Nov 2018 16:06:04 +0000 (11:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Nov 2018 19:02:06 +0000 (14:02 -0500)
commit694d0775ca94beccfa8332d9284c1e8b6b19ad01
tree3232fb6ef6c16231410ba68395514c33b11c8fea
parent45cf8c23f3564e3f39ae09b70b9dff24acae4a56
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: David 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: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c