aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pwm.h')
-rw-r--r--include/linux/pwm.h6
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
4struct pwm_device; 6struct pwm_device;
5struct seq_file; 7struct 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
110int pwm_set_chip_data(struct pwm_device *pwm, void *data); 116int pwm_set_chip_data(struct pwm_device *pwm, void *data);