exynos: pwm: Deal with a PWM at 100%
authorSimon Glass <sjg@chromium.org>
Wed, 3 Nov 2021 19:21:33 +0000 (13:21 -0600)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 9 Nov 2021 02:57:22 +0000 (11:57 +0900)
commitdfb8470fd0b3b8a87c047b9c1765a1b9123b83b7
tree287a938c5af8b07e0a62abd17e6fef8f395b20ec
parentf8ed9059001d803b0eae4b49178789aa0e29edec
exynos: pwm: Deal with a PWM at 100%

At present the counter never hits the comparitor in this case. Add a
special case.

This ensures that the snow backlight works when at full brightness.

Fixes: 76c2ff3e5fd video: backlight: fix pwm's duty cycle calculation

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/pwm/exynos_pwm.c