pwm: rcar: Improve accuracy of frequency division setting
authorRyo Kodama <ryo.kodama.vz@renesas.com>
Mon, 9 Nov 2015 00:42:25 +0000 (09:42 +0900)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 16 Dec 2015 16:02:14 +0000 (17:02 +0100)
commit72c16a9f98afad073b4a9c947c1c89bfb886ffcb
treec506bf3b4970c77e0b24e3651f25f597254fdd80
parentd6dbdf0ddefa581e49c2abe5fb0eb17d14111d89
pwm: rcar: Improve accuracy of frequency division setting

From: Ryo Kodama <ryo.kodama.vz@renesas.com>

When period_ns is set to the same value of RCAR_PWM_MAX_CYCLE in
rcar_pwm_get_clock_division(), this function should allow such value
for improving accuracy of frequency division setting.

Signed-off-by: Ryo Kodama <ryo.kodama.vz@renesas.com>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-rcar.c