]> git.dujemihanovic.xyz Git - u-boot.git/commit
pwm: sunxi: fix off-by-one that prevented PWM to use prescaler bypass
authorVasily Khoruzhick <anarsoul@gmail.com>
Wed, 17 Oct 2018 04:56:33 +0000 (21:56 -0700)
committerJagan Teki <jagan@amarulasolutions.com>
Wed, 24 Oct 2018 16:26:57 +0000 (21:56 +0530)
commita877d4b1aef70bbae556e156e6802b7d917546ab
tree537d0ba6a9c8a2da929c2cd7446dfacc917f62e5
parent1ed3c0954bd160dafcad8847a51c3ddd5f992f51
pwm: sunxi: fix off-by-one that prevented PWM to use prescaler bypass

Fix off-by-one that prevented PWM driver to use prescaler bypass.
Without this change prescaler is always enabled.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/pwm/sunxi_pwm.c