OSDN Git Service

drm/amd/display: Implement backlight_ops.get_brightness
authorDavid Francis <David.Francis@amd.com>
Thu, 19 Jul 2018 15:25:05 +0000 (11:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Aug 2018 19:35:24 +0000 (14:35 -0500)
commit620a0d27b211aa03d3f99accfdd58b88e6e0504c
tree24f4b682dc1e04e55416ccb681602b9c272879fa
parent0301ccbaf67d3d9aea97156c5eb85233bb5a5178
drm/amd/display: Implement backlight_ops.get_brightness

[Why]
This hook that is supposed to read the actual backlight value
is used in a few places throughout the kernel to setup or force
update on backlight

[How]
Create a dc function that calls the existing abm function, and
call that function from amdgpu

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
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