summaryrefslogtreecommitdiff
path: root/include/linux/pwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pwm.h')
-rw-r--r--include/linux/pwm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h
index a4df2042b79c..b126bce91796 100644
--- a/include/linux/pwm.h
+++ b/include/linux/pwm.h
@@ -32,6 +32,11 @@ int pwm_enable(struct pwm_device *pwm);
* pwm_disable - stop a PWM output toggling
*/
void pwm_disable(struct pwm_device *pwm);
+
+/*
+ * pwm_out_enable - enable/disable PWM output pin
+ */
+ void pwm_out_enable(struct pwm_device *pwm, bool enable);
#else
static inline struct pwm_device *pwm_request(int pwm_id, const char *label)
{
@@ -55,6 +60,10 @@ static inline int pwm_enable(struct pwm_device *pwm)
static inline void pwm_disable(struct pwm_device *pwm)
{
}
+
+static inline void pwm_out_enable(struct pwm_device *pwm, bool enable)
+{
+}
#endif
struct pwm_chip;
@@ -131,6 +140,7 @@ struct pwm_ops {
struct pwm_device *pwm);
void (*disable)(struct pwm_chip *chip,
struct pwm_device *pwm);
+ void (*out_enable)(struct pwm_chip *pwm, bool enable);
#ifdef CONFIG_DEBUG_FS
void (*dbg_show)(struct pwm_chip *chip,
struct seq_file *s);