drm/amd/display: Fix AMDGPU_MAX_BL_LEVEL value
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 23 Jun 2025 17:11:13 +0000 (12:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jun 2025 14:04:41 +0000 (10:04 -0400)
commit5b852044eb0d3e1f1c946d32e05fcb068e0a20a0
tree0c418192103b2e1389091d6194dd92154a7d4ea4
parent518f13f8e354285f6faaa81e68e5b6c7d22ffe26
drm/amd/display: Fix AMDGPU_MAX_BL_LEVEL value

[Why]
commit 16dc8bc27c2a ("drm/amd/display: Export full brightness range to
userspace") adjusted the brightness range to scale to larger values, but
missed updating AMDGPU_MAX_BL_LEVEL which is needed to make sure that
scaling works properly with custom brightness curves.

[How]
As the change for max brightness of 0xFFFF only applies to devices
supporting DC, use existing DC define MAX_BACKLIGHT_LEVEL.

Fixes: 16dc8bc27c2a ("drm/amd/display: Export full brightness range to userspace")
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://lore.kernel.org/r/20250623171114.1156451-1-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c