Commit 2ea25aab authored by David Lechner's avatar David Lechner Committed by Uwe Kleine-König
Browse files

pwm: core: export pwm_get_state_hw()



Export the pwm_get_state_hw() function. This is useful in cases where
we want to know what the hardware is actually doing, rather than what
what we requested it should do.

Locking had to be rearranged to ensure that the chip is still
operational before trying to access ops now that this can be called
from outside the pwm core.

Signed-off-by: default avatarDavid Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20241029-pwm-export-pwm_get_state_hw-v2-1-03ba063a3230@baylibre.com


[ukleinek: Add dummy for !CONFIG_PWM]
Signed-off-by: default avatarUwe Kleine-König <ukleinek@kernel.org>
parent fdb62922
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment