UPSTREAM: pwm: sysfs: Add PWM capture support
authorLee Jones <lee.jones@linaro.org>
Wed, 8 Jun 2016 09:21:25 +0000 (10:21 +0100)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 6 Mar 2017 10:28:40 +0000 (18:28 +0800)
commitea5d08da89c7086bfb623f0709ad4fa01895c593
tree6a0fa726e36401def702f307c900d81841e07a7c
parent76e1d28062ceebe7ad4ac65d3e86fa55f9f242e4
UPSTREAM: pwm: sysfs: Add PWM capture support

Allow a user to read PWM capture results from sysfs. To start a capture
and read the result, simply read the file:

  $ cat $PWMCHIP/capture

The output format is "<period> <duty cycle>".

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
(cherry picked from commit 1a366fe9153f445e950a7a344932b7419aa83094)

Change-Id: I86326709c373630a9189232a1cf2804a1a6ed380
Signed-off-by: David Wu <david.wu@rock-chips.com>
Documentation/ABI/testing/sysfs-class-pwm
drivers/pwm/sysfs.c