diff options
Diffstat (limited to 'include/linux/pwm.h')
-rw-r--r-- | include/linux/pwm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/pwm.h b/include/linux/pwm.h index cc908a5396f8..76a1959f2b23 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h | |||
@@ -175,6 +175,7 @@ struct pwm_device *of_pwm_xlate_with_flags(struct pwm_chip *pc, | |||
175 | const struct of_phandle_args *args); | 175 | const struct of_phandle_args *args); |
176 | 176 | ||
177 | struct pwm_device *pwm_get(struct device *dev, const char *con_id); | 177 | struct pwm_device *pwm_get(struct device *dev, const char *con_id); |
178 | struct pwm_device *of_pwm_get(struct device_node *np, const char *con_id); | ||
178 | void pwm_put(struct pwm_device *pwm); | 179 | void pwm_put(struct pwm_device *pwm); |
179 | 180 | ||
180 | struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id); | 181 | struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id); |
@@ -213,6 +214,12 @@ static inline struct pwm_device *pwm_get(struct device *dev, | |||
213 | return ERR_PTR(-ENODEV); | 214 | return ERR_PTR(-ENODEV); |
214 | } | 215 | } |
215 | 216 | ||
217 | static inline struct pwm_device *of_pwm_get(struct device_node *np, | ||
218 | const char *con_id) | ||
219 | { | ||
220 | return ERR_PTR(-ENODEV); | ||
221 | } | ||
222 | |||
216 | static inline void pwm_put(struct pwm_device *pwm) | 223 | static inline void pwm_put(struct pwm_device *pwm) |
217 | { | 224 | { |
218 | } | 225 | } |