aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2025-04-30 11:55:58 +0000
committerUwe Kleine-König <[email protected]>2025-05-07 09:48:35 +0000
commite866834c8baabc33b431902beeeb0c94dfbc1024 (patch)
tree6000b9248a43557075627edf192c6db3b1bf2efd /drivers/fpga/tests
parentpwm: add support for NXPs high-side switch MC33XS2410 (diff)
downloadkernel-e866834c8baabc33b431902beeeb0c94dfbc1024.tar.gz
kernel-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 <[email protected]> Link: https://lore.kernel.org/r/20538a46719584dafd8a1395c886780a97dcdf79.1746010245.git.u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'drivers/fpga/tests')
0 files changed, 0 insertions, 0 deletions