]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pwm: Provide new consumer API functions for waveforms
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Fri, 20 Sep 2024 08:57:59 +0000 (10:57 +0200)
committerUwe Kleine-König <ukleinek@kernel.org>
Sat, 28 Sep 2024 13:13:56 +0000 (15:13 +0200)
commit6c5126c6406d1c31e91f5b925c621c1c785366be
tree3c47ebdac5843ddc44f4200e420ce5ada24a6f34
parent17e40c25158f2505cbcdeda96624afcbab4af368
pwm: Provide new consumer API functions for waveforms

Provide API functions for consumers to work with waveforms.

Note that one relevant difference between pwm_get_state() and
pwm_get_waveform*() is that the latter yields the actually configured
hardware state, while the former yields the last state passed to
pwm_apply*() and so doesn't account for hardware specific rounding.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Tested-by: Trevor Gamblin <tgamblin@baylibre.com>
Link: https://lore.kernel.org/r/6c97d27682853f603e18e9196043886dd671845d.1726819463.git.u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/core.c
include/linux/pwm.h