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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h
index d681f6875aef..cfc3ed46cad2 100644
--- a/include/linux/pwm.h
+++ b/include/linux/pwm.h
@@ -2,6 +2,7 @@
2#define __LINUX_PWM_H 2#define __LINUX_PWM_H
3 3
4#include <linux/err.h> 4#include <linux/err.h>
5#include <linux/mutex.h>
5#include <linux/of.h> 6#include <linux/of.h>
6 7
7struct pwm_device; 8struct pwm_device;
@@ -87,6 +88,7 @@ enum {
87 * @pwm: global index of the PWM device 88 * @pwm: global index of the PWM device
88 * @chip: PWM chip providing this PWM device 89 * @chip: PWM chip providing this PWM device
89 * @chip_data: chip-private data associated with the PWM device 90 * @chip_data: chip-private data associated with the PWM device
91 * @lock: used to serialize accesses to the PWM device where necessary
90 * @period: period of the PWM signal (in nanoseconds) 92 * @period: period of the PWM signal (in nanoseconds)
91 * @duty_cycle: duty cycle of the PWM signal (in nanoseconds) 93 * @duty_cycle: duty cycle of the PWM signal (in nanoseconds)
92 * @polarity: polarity of the PWM signal 94 * @polarity: polarity of the PWM signal
@@ -98,6 +100,7 @@ struct pwm_device {
98 unsigned int pwm; 100 unsigned int pwm;
99 struct pwm_chip *chip; 101 struct pwm_chip *chip;
100 void *chip_data; 102 void *chip_data;
103 struct mutex lock;
101 104
102 unsigned int period; 105 unsigned int period;
103 unsigned int duty_cycle; 106 unsigned int duty_cycle;