diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2011-12-14 05:10:32 -0500 |
---|---|---|
committer | Thierry Reding <thierry.reding@avionic-design.de> | 2012-06-15 06:56:57 -0400 |
commit | 7299ab70e68e20e70cb45fe4ab4b6029fe964acd (patch) | |
tree | b396b29f6170deb3769c0b884ccf0fd64211f6ee /include/linux/pwm.h | |
parent | e05e5070f0ec2557d2d2ff3655ba03f29e297151 (diff) |
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 @@ | |||
1 | #ifndef __LINUX_PWM_H | 1 | #ifndef __LINUX_PWM_H |
2 | #define __LINUX_PWM_H | 2 | #define __LINUX_PWM_H |
3 | 3 | ||
4 | #include <linux/of.h> | ||
5 | |||
4 | struct pwm_device; | 6 | struct pwm_device; |
5 | struct seq_file; | 7 | struct seq_file; |
6 | 8 | ||
@@ -105,6 +107,10 @@ struct pwm_chip { | |||
105 | unsigned int npwm; | 107 | unsigned int npwm; |
106 | 108 | ||
107 | struct pwm_device *pwms; | 109 | struct pwm_device *pwms; |
110 | |||
111 | struct pwm_device * (*of_xlate)(struct pwm_chip *pc, | ||
112 | const struct of_phandle_args *args); | ||
113 | unsigned int of_pwm_n_cells; | ||
108 | }; | 114 | }; |
109 | 115 | ||
110 | int pwm_set_chip_data(struct pwm_device *pwm, void *data); | 116 | int pwm_set_chip_data(struct pwm_device *pwm, void *data); |