[PATCH] video: backlight: pwm: avoid integer overflow in duty cycle calculation

Simon Glass sjg at chromium.org
Mon Jul 3 15:30:58 CEST 2023


On Fri, 30 Jun 2023 at 13:38, Matthias Schiffer
<matthias.schiffer at ew.tq-group.com> wrote:
>
> The intermediate value could overflow for large periods and levels.
>
> Signed-off-by: Matthias Schiffer <matthias.schiffer at ew.tq-group.com>
> ---
>  drivers/video/pwm_backlight.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list