]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: avoid build failure on veyron board
authorAlvaro Fernando García <alvarofernandogarcia@gmail.com>
Fri, 4 Aug 2023 00:35:38 +0000 (21:35 -0300)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 12 Aug 2023 02:18:12 +0000 (10:18 +0800)
commit8300cebcd60476443d8a630b56f715eae5af911b
tree95406561257f941757afce05b0632905e9b9af4b
parentbb38db086c6c7eade690d83aa0d96af8c993b991
video: avoid build failure on veyron board

533ad9dc avoided an overflow but causes compilation
failure on 32bit boards (eg. veyron speedy)

this commit uses div_u64 which has a fallback codepath
for 32bit platforms

Signed-off-by: Alvaro Fernando García <alvarofernandogarcia@gmail.com>
Tested-by: Simon Glass <sjg@chromium.org> # chromebook_jerry
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/video/pwm_backlight.c