diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-06-14 11:13:10 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2016-07-08 17:52:19 +0200 |
commit | f6f3bddf7b2b994a927808fcc5a3d07069c35956 (patch) | |
tree | ea4b977c05eee37a08393720a22e69e5c100c0f5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a6a0dbbcfa469cf3e5c4d9522106c0b7b9e9e373 (diff) |
pwm: Add relative duty cycle manipulation helpers
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions