diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2011-12-14 11:10:32 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2012-06-15 12:56:57 +0200 |
commit | 7299ab70e68e20e70cb45fe4ab4b6029fe964acd (patch) | |
tree | b396b29f6170deb3769c0b884ccf0fd64211f6ee /include/linux/pwm.h | |
parent | e05e5070f0ec2557d2d2ff3655ba03f29e297151 (diff) | |
download | lwn-7299ab70e68e20e70cb45fe4ab4b6029fe964acd.tar.gz lwn-7299ab70e68e20e70cb45fe4ab4b6029fe964acd.zip |
pwm: Add device tree support
This patch adds helpers to support device tree bindings for the generic
PWM API. Device tree binding documentation for PWM controllers is also
provided.
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'include/linux/pwm.h')
-rw-r--r-- | include/linux/pwm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h index 2947a4fea6ad..21d076c5089e 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -1,6 +1,8 @@ #ifndef __LINUX_PWM_H #define __LINUX_PWM_H +#include <linux/of.h> + struct pwm_device; struct seq_file; @@ -105,6 +107,10 @@ struct pwm_chip { unsigned int npwm; struct pwm_device *pwms; + + struct pwm_device * (*of_xlate)(struct pwm_chip *pc, + const struct of_phandle_args *args); + unsigned int of_pwm_n_cells; }; int pwm_set_chip_data(struct pwm_device *pwm, void *data); |