diff options
| author | Uwe Kleine-König <[email protected]> | 2025-04-30 11:55:59 +0000 |
|---|---|---|
| committer | Uwe Kleine-König <[email protected]> | 2025-05-07 09:48:35 +0000 |
| commit | 164c4ac754abaf9643815d09001cc7d81042d624 (patch) | |
| tree | f8f2a7c1e7ef14e237fca2a9d9ff0ee86ea85c3f /lib/debugobjects.c | |
| parent | pwm: Let pwm_set_waveform_might_sleep() fail for exact but impossible requests (diff) | |
| download | kernel-164c4ac754abaf9643815d09001cc7d81042d624.tar.gz kernel-164c4ac754abaf9643815d09001cc7d81042d624.zip | |
pwm: Let pwm_set_waveform_might_sleep() return 0 instead of 1 after rounding up
While telling the caller of pwm_set_waveform_might_sleep() if the
request was completed by rounding down only or (some) rounding up gives
additional information, it makes usage this function needlessly hard and
the additional information is not used. A prove for that is that
currently both users of this function just pass the returned value up to
their caller even though a positive value isn't intended there.
Signed-off-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/528cc3bbd9e35dea8646b1bcc0fbfe6c498bb4ed.1746010245.git.u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
