]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: atmel-tcb: fix max time computation for slow clk source
authorBoris BREZILLON <b.brezillon@overkiz.com>
Wed, 18 Sep 2013 15:06:21 +0000 (17:06 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 19 Sep 2013 12:04:32 +0000 (14:04 +0200)
commitccf63404884b660cf6fdeab186461c37c68d0523
treef21a7f36ae193f0ca7d02b88bf29de39c4b1edb7
parentf7ad038feecd8a6786144067c4662d5372286955
pwm: atmel-tcb: fix max time computation for slow clk source

Use the the tcb counter width to compute the maximum time that can be
represented using the slow clock source instead of the static 16 bit width.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-atmel-tcb.c