summaryrefslogtreecommitdiff
path: root/include/linux/klist.h
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2016-06-14 11:13:10 +0200
committerThierry Reding <thierry.reding@gmail.com>2016-07-08 17:52:19 +0200
commitf6f3bddf7b2b994a927808fcc5a3d07069c35956 (patch)
treeea4b977c05eee37a08393720a22e69e5c100c0f5 /include/linux/klist.h
parenta6a0dbbcfa469cf3e5c4d9522106c0b7b9e9e373 (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 'include/linux/klist.h')
0 files changed, 0 insertions, 0 deletions