]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit072ab3b19b7a853555963e554b190d4183674fb5
tree24f4b682dc1e04e55416ccb681602b9c272879fa
parenta199d873354141fcf11917d91bd0e1238ce72e7b
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