Skip to content
Commit 1de7d802 authored by Boris Brezillon's avatar Boris Brezillon Committed by Mark Brown
Browse files

regulator: pwm: implement ->enable(), ->disable() and ->is_enabled methods



Implement the ->enable(), ->disable() and ->is_enabled methods and remove
the PWM call in ->set_voltage_sel().
This is particularly important for critical regulators tagged as always-on,
because not claiming the PWM (and its dependencies) might lead to
unpredictable behavior (like a system hang because the PWM clk is only
claimed when the PWM device is enabled).

Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6ff33f39
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