]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd: Query and use ACPI backlight caps
authorDavid Francis <David.Francis@amd.com>
Mon, 26 Nov 2018 16:44:06 +0000 (11:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 26 Nov 2018 20:54:39 +0000 (15:54 -0500)
commit177276e97ca9224b1c32743e3671346363b3e128
tree3324c64471524c6ea4c95add3ff2ee6bc9fe4114
parent23a40310d74ff06be9f5be3234aa10e66243ef1b
drm/amd: Query and use ACPI backlight caps

ACPI ATIF has a function called query
backlight transfer characteristics.  Among the
information returned by this function is
the minimum and maximum input signals for the
backlight

Call that function on ACPI init.  When DM
backlight device is updated, copy over the
backlight caps into DM, but only once.  Use
the backlight caps in the backlight-to-dc
calculation

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/include/amd_acpi.h