UPSTREAM: pwm: Add information about polarity, duty cycle and period to debugfs
authorHeiko Stübner <heiko@sntech.de>
Thu, 14 Apr 2016 19:17:44 +0000 (21:17 +0200)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 6 Mar 2017 10:28:40 +0000 (18:28 +0800)
commit0cb6a1b23bd55212d64d8f89cd016f1801e8b124
tree3b76ceb290faa5166d7b7dd9f7edbb823b3780f7
parenta5721888cdc04cc4b9c576965007aaa5e1962a24
UPSTREAM: pwm: Add information about polarity, duty cycle and period to debugfs

The PWM states make it possible to also output the polarity, duty cycle
and period information in the debugfs summary output. This simplifies
gathering information about PWMs without needing to walk through the
sysfs attributes of every PWM.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
[thierry.reding@gmail.com: use more spaces in debugfs output]
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
(cherry picked from commit 23e3523f5d3a980edf7f189743cf4bb9490400a9)

Change-Id: Ia5d4d9ab898510d07364ad455ccf93e1c1d95d2b
Signed-off-by: David Wu <david.wu@rock-chips.com>
drivers/pwm/core.c