]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/display: add helper functions to get/set backlight (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 11 May 2021 15:37:09 +0000 (11:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:44:31 +0000 (22:44 -0400)
commit3d6c91641bc8a883b0c810ac1a919db29ebd5ee7
treee59fb76788b5c2d432d68990ba7da8d6a4b2474d
parent1f6256590c118475d7c32839cf07178d1ae97f0c
drm/amdgpu/display: add helper functions to get/set backlight (v2)

And cache the value.  These can be used by the backlight callbacks
and modesetting functions.

v2: rebase on latest backlight changes.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1337
Reviewed-by: Harry Wentland <harry.wentland@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/amdgpu_dm/amdgpu_dm.h