aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorLauri Tirkkonen <[email protected]>2025-07-21 00:59:40 +0000
committerAlex Deucher <[email protected]>2025-07-28 20:25:34 +0000
commit9c2883057b3c861879b647f34e8bc448954e8729 (patch)
tree27136a777ebd3ee6566aa7ca8cdfc4e9fe380d28 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentdrm/amdgpu: Avoid extra evict-restore process. (diff)
downloadkernel-9c2883057b3c861879b647f34e8bc448954e8729.tar.gz
kernel-9c2883057b3c861879b647f34e8bc448954e8729.zip
drm/amd/display: fix initial backlight brightness calculation
DIV_ROUND_CLOSEST(x, 100) returns either 0 or 1 if 0<x<=100, so the division needs to be performed after the multiplication and not the other way around, to properly scale the value. Fixes: 8b5f3a229a70 ("drm/amd/display: Fix default DC and AC levels") Signed-off-by: Lauri Tirkkonen <[email protected]> Cc: [email protected] Reviewed-by: Mario Limonciello <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions