+55
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
The PWM framework expects PWM users to configure the duty cycle in nano-
seconds, but many users want to express the duty cycle relatively to the
period value (i.e. duty_cycle = 33% of the period).
Add the pwm_{get,set}_relative_duty_cycle() helpers to ease this kind of
conversion.
Signed-off-by:
Boris Brezillon <boris.brezillon@free-electrons.com>
Tested-by:
Heiko Stuebner <heiko@sntech.de>
Signed-off-by:
Thierry Reding <thierry.reding@gmail.com>