pwm: Add PWM capture support
authorLee Jones <lee.jones@linaro.org>
Wed, 8 Jun 2016 09:21:23 +0000 (10:21 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 10 Jun 2016 14:01:35 +0000 (16:01 +0200)
commit3a3d1a4e32ab47323d7b8c8b7631a8d36a3098b2
treea79165beca06b134c36ac6dd6ebbcd82e36d3206
parent1a695a905c18548062509178b98bc91e67510864
pwm: Add PWM capture support

Supply a PWM capture callback op in order to pass back information
obtained by running analysis on a PWM signal. This would normally (at
least during testing) be called from the sysfs routines with a view to
printing out PWM capture data which has been encoded into a string.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
[thierry.reding@gmail.com: make capture data unsigned int for symmetry]
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c
include/linux/pwm.h