diff options
author | 2025-04-30 13:55:58 +0200 | |
---|---|---|
committer | 2025-05-07 11:48:35 +0200 | |
commit | e866834c8baabc33b431902beeeb0c94dfbc1024 (patch) | |
tree | 6000b9248a43557075627edf192c6db3b1bf2efd /scripts/lib/kdoc/kdoc_parser.py | |
parent | pwm: add support for NXPs high-side switch MC33XS2410 (diff) | |
download | linux-rng-e866834c8baabc33b431902beeeb0c94dfbc1024.tar.xz linux-rng-e866834c8baabc33b431902beeeb0c94dfbc1024.zip |
pwm: Let pwm_set_waveform_might_sleep() fail for exact but impossible requests
Up to now pwm_set_waveform_might_sleep() returned 1 for exact requests
that couldn't be served exactly. In contrast to
pwm_round_waveform_might_sleep() and pwm_set_waveform_might_sleep() with
exact = false this is an error condition. So simplify handling for
callers of pwm_set_waveform_might_sleep() by returning -EDOM instead of
1 in this case.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20538a46719584dafd8a1395c886780a97dcdf79.1746010245.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