diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2019-04-01 20:18:16 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2019-05-09 16:50:04 +0200 |
commit | 51496e4446875726d50a5617a6e0e0dabbc2e6da (patch) | |
tree | 66b7594064d9a6d2fddd070a0d19b2c581c85bf3 /Documentation/userspace-api | |
parent | pwm: sysfs: fix typo "its" -> "it's" (diff) | |
download | linux-51496e4446875726d50a5617a6e0e0dabbc2e6da.tar.xz linux-51496e4446875726d50a5617a6e0e0dabbc2e6da.zip |
pwm: meson: Consider 128 a valid pre-divider
The pre-divider allows configuring longer PWM periods compared to using
the input clock directly. The pre-divider is 7 bit wide, meaning it's
maximum value is 128 (the register value is off-by-one: 0x7f or 127).
Change the loop to also allow for the maximum possible value to be
considered valid.
Fixes: 211ed630753d2f ("pwm: Add support for Meson PWM Controller")
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'Documentation/userspace-api')
0 files changed, 0 insertions, 0 deletions