diff options
author | Stefan Wahren <wahrenst@gmx.net> | 2019-08-24 16:09:47 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2019-09-21 01:23:24 +0200 |
commit | 7e9713af316187f323b25ebf7eb1a8f03425e7e9 (patch) | |
tree | c1ac2e079816199282863b70bcf9cebd3ec56723 /LICENSES/preferred | |
parent | pwm: bcm2835: Suppress error message for invalid period_ns (diff) | |
download | linux-7e9713af316187f323b25ebf7eb1a8f03425e7e9.tar.xz linux-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 <wahrenst@gmx.net>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'LICENSES/preferred')
0 files changed, 0 insertions, 0 deletions