]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: backlight: fix pwm's duty cycle calculation
authorDario Binacchi <dariobin@libero.it>
Sun, 11 Oct 2020 12:28:04 +0000 (14:28 +0200)
committerAnatolij Gustschin <agust@denx.de>
Sun, 18 Oct 2020 13:07:33 +0000 (15:07 +0200)
commit76c2ff3e5fd8068b433acbb0e76d33fa5116dade
tree3baaf2748b10f35d80c1ee06477e63f1fba5d778
parentf9b94055bdde93a302075ff86a1046b98e2c8e05
video: backlight: fix pwm's duty cycle calculation

For levels equal to the maximum value, the duty cycle must be equal to
the period.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/pwm_backlight.c
test/dm/panel.c