PWM: Add helper APIs and sysfs entries to the PWM Frame Work
authorNatarajan Sugumar <sugumar@ti.com>
Wed, 2 Mar 2011 08:24:50 +0000 (13:54 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:51 +0000 (00:44 +0530)
commite064fb1d2f392b1109aaca224b3fe0d65a55c5f8
treee7c24d4b0f87380da7400820858cbe746f94def2
parentc7fd248a295d23a67511629cea16fc0f574a6232
PWM: Add helper APIs and sysfs entries to the PWM Frame Work

1. Add pwm_duty_percent and pwm_frequency attributes to the SYSFS interface
of the PWM Framework. Since, PWM waveform is characterized mainly by
percent duty and the frequency, it is pretty much useful to have these
attributes.
2. Also, period_ns and duty_ns variables have been added to
the pwm_device structure as it might be needed by the PWM driver
functions.

Signed-off-by: Natarajan Sugumar <sugumar@ti.com>
Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
drivers/pwm/pwm.c
include/linux/pwm/pwm.h