]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: backlight: pwm: avoid integer overflow in duty cycle calculation
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Fri, 30 Jun 2023 12:30:07 +0000 (14:30 +0200)
committerAnatolij Gustschin <agust@denx.de>
Fri, 14 Jul 2023 16:12:37 +0000 (18:12 +0200)
commit533ad9dcda38a78c7965e9cea8a05c80d18449e4
treebd8f811e57b12d47c2a5a30e62cd3a1c3902bc2e
parent6a0b8885802a4548de9ee54494033b4f19a01b56
video: backlight: pwm: avoid integer overflow in duty cycle calculation

The intermediate value could overflow for large periods and levels.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/pwm_backlight.c