]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Detach backlight from stream
authorDavid Francis <David.Francis@amd.com>
Tue, 20 Nov 2018 14:42:58 +0000 (09:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Jan 2019 22:11:47 +0000 (17:11 -0500)
commit87efc414bf9a4d9c14778132ba84fa29fcad45fd
tree6bdfec59b4ed6ed87e5019e004464da4f269b226
parent0234152b6e479868a9d312922f5a748ec4521607
drm/amd/display: Detach backlight from stream

[Why]
Backlight is conceptually a property of links, not streams.
All backlight programming is done on links, but there is a
stream property bl_pwm_level that is used to restore backlight
on dpms on and s3 resume.  This is unnecessary, as backlight
is already restored by hardware with no driver intervention.

[How]
Remove bl_pwm_level, and the stream argument to set_backlight

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=109375
Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 923fe4951282cbdfce05186c10380bbc45b5e03b)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_link.h
drivers/gpu/drm/amd/display/dc/dc_stream.h