aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32-lp.c
diff options
context:
space:
mode:
authorStefan Wahren <[email protected]>2019-08-24 14:09:47 +0000
committerThierry Reding <[email protected]>2019-09-20 23:23:24 +0000
commit7e9713af316187f323b25ebf7eb1a8f03425e7e9 (patch)
treec1ac2e079816199282863b70bcf9cebd3ec56723 /drivers/pwm/pwm-stm32-lp.c
parentpwm: bcm2835: Suppress error message for invalid period_ns (diff)
downloadkernel-7e9713af316187f323b25ebf7eb1a8f03425e7e9.tar.gz
kernel-7e9713af316187f323b25ebf7eb1a8f03425e7e9.zip
pwm: bcm2835: Fix period_ns range check
The range check for period_ns was written under assumption of a fixed PWM clock. With clk-bcm2835 driver the PWM clock is a dynamic one. So fix this by doing the range check on the period register value. Signed-off-by: Stefan Wahren <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32-lp.c')
0 files changed, 0 insertions, 0 deletions