Merge drm/drm-next into drm-misc-next
[sfrench/cifs-2.6.git] / include / linux / pwm.h
index dd51d4931fdc00937e40debdd652975677a9f463..9771a0761a40e016c0f8a7696489091c0ebc9d97 100644 (file)
@@ -431,16 +431,19 @@ struct pwm_device *devm_fwnode_pwm_get(struct device *dev,
 #else
 static inline struct pwm_device *pwm_request(int pwm_id, const char *label)
 {
+       might_sleep();
        return ERR_PTR(-ENODEV);
 }
 
 static inline void pwm_free(struct pwm_device *pwm)
 {
+       might_sleep();
 }
 
 static inline int pwm_apply_state(struct pwm_device *pwm,
                                  const struct pwm_state *state)
 {
+       might_sleep();
        return -ENOTSUPP;
 }
 
@@ -452,6 +455,7 @@ static inline int pwm_adjust_config(struct pwm_device *pwm)
 static inline int pwm_config(struct pwm_device *pwm, int duty_ns,
                             int period_ns)
 {
+       might_sleep();
        return -EINVAL;
 }
 
@@ -464,11 +468,13 @@ static inline int pwm_capture(struct pwm_device *pwm,
 
 static inline int pwm_enable(struct pwm_device *pwm)
 {
+       might_sleep();
        return -EINVAL;
 }
 
 static inline void pwm_disable(struct pwm_device *pwm)
 {
+       might_sleep();
 }
 
 static inline int pwm_set_chip_data(struct pwm_device *pwm, void *data)
@@ -495,12 +501,14 @@ static inline struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip,
                                                       unsigned int index,
                                                       const char *label)
 {
+       might_sleep();
        return ERR_PTR(-ENODEV);
 }
 
 static inline struct pwm_device *pwm_get(struct device *dev,
                                         const char *consumer)
 {
+       might_sleep();
        return ERR_PTR(-ENODEV);
 }
 
@@ -508,16 +516,19 @@ static inline struct pwm_device *of_pwm_get(struct device *dev,
                                            struct device_node *np,
                                            const char *con_id)
 {
+       might_sleep();
        return ERR_PTR(-ENODEV);
 }
 
 static inline void pwm_put(struct pwm_device *pwm)
 {
+       might_sleep();
 }
 
 static inline struct pwm_device *devm_pwm_get(struct device *dev,
                                              const char *consumer)
 {
+       might_sleep();
        return ERR_PTR(-ENODEV);
 }
 
@@ -525,6 +536,7 @@ static inline struct pwm_device *devm_of_pwm_get(struct device *dev,
                                                 struct device_node *np,
                                                 const char *con_id)
 {
+       might_sleep();
        return ERR_PTR(-ENODEV);
 }
 
@@ -532,6 +544,7 @@ static inline struct pwm_device *
 devm_fwnode_pwm_get(struct device *dev, struct fwnode_handle *fwnode,
                    const char *con_id)
 {
+       might_sleep();
        return ERR_PTR(-ENODEV);
 }
 #endif