]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fbdev: pxafb: Fix multiple clamped values in pxafb_adjust_timing
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 2 Dec 2025 18:15:32 +0000 (19:15 +0100)
committerHelge Deller <deller@gmx.de>
Tue, 2 Dec 2025 18:49:10 +0000 (19:49 +0100)
commit0155e868cbc111846cc2809c1546ea53810a56ae
tree315aa45666fb5d072e700d4edb2fcd972891a804
parent35fa2b4bf96415b88d7edaa5cf8af5185d9ce76e
fbdev: pxafb: Fix multiple clamped values in pxafb_adjust_timing

The variables were never clamped because the return value of clamp_val()
was not used. Fix this by assigning the clamped values, and use clamp()
instead of clamp_val().

Cc: stable@vger.kernel.org
Fixes: 3f16ff608a75 ("[ARM] pxafb: cleanup of the timing checking code")
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/pxafb.c