]> git.baikalelectronics.ru Git - uboot.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)
commitab99c022a559fcde7a47b5e78a56437c00e61352
tree3baaf2748b10f35d80c1ee06477e63f1fba5d778
parentaf203d7999f2e29465e7475b168974a2d5b17202
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