diff options
author | 2025-04-05 11:27:17 +0200 | |
---|---|---|
committer | 2025-04-14 08:03:16 +0200 | |
commit | 96d20cfd16e779923153f7347b0bef6b3c7606ce (patch) | |
tree | 6aca336a6b0273c18636b09294d89d912fd93bd5 /scripts/lib/kdoc/kdoc_parser.py | |
parent | pwm: stm32: Emit debug output also for corner cases of the rounding callbacks (diff) | |
download | linux-rng-96d20cfd16e779923153f7347b0bef6b3c7606ce.tar.xz linux-rng-96d20cfd16e779923153f7347b0bef6b3c7606ce.zip |
pwm: Do stricter return value checking for .round_waveform_tohw()
The .round_waveform_tohw() is supposed to return 0 if the request could
be rounded down to match the hardware capabilities and return 1 if
rounding down wasn't possible.
Expand the PWM_DEBUG check to not only assert proper downrounding if 0
was returned but also check that it was actually rounded up when the
callback signalled uprounding.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/dfb824ae37f99df068c752d48cbd163c044a74fb.1743844730.git.u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions