Skip to content
Commit 7e9713af authored by Stefan Wahren's avatar Stefan Wahren Committed by Thierry Reding
Browse files

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: default avatarStefan Wahren <wahrenst@gmx.net>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 4537e52a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment