Skip to content
Unverified Commit 6a7d11ef authored by Martin Blumenstingl's avatar Martin Blumenstingl Committed by Mark Brown
Browse files

regulator: pwm-regulator: Calculate the output voltage for disabled PWMs



If a PWM output is disabled then it's voltage has to be calculated
based on a zero duty cycle (for normal polarity) or duty cycle being
equal to the PWM period (for inverted polarity). Add support for this
to pwm_regulator_get_voltage().

Signed-off-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://msgid.link/r/20240113224628.377993-3-martin.blumenstingl@googlemail.com
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c92688ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment