diff options
author | Thierry Reding <thierry.reding@gmail.com> | 2017-01-04 03:39:52 -0500 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2017-01-04 03:39:52 -0500 |
commit | fe2858c8c6d167df33a839591ebe63ea05a69d06 (patch) | |
tree | 5293513073f335bcb68765cbefbb2f1e4d3a00d6 | |
parent | 247bde13b91aad0e27446eb356420052c474e4c3 (diff) |
pwm: Remove pwm_can_sleep()
The last user of this function has been removed, so it is no longer
needed.
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | drivers/pwm/core.c | 12 | ||||
-rw-r--r-- | include/linux/pwm.h | 7 |
2 files changed, 0 insertions, 19 deletions
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 172ef8245811..78e114a11c4f 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c | |||
@@ -960,18 +960,6 @@ void devm_pwm_put(struct device *dev, struct pwm_device *pwm) | |||
960 | } | 960 | } |
961 | EXPORT_SYMBOL_GPL(devm_pwm_put); | 961 | EXPORT_SYMBOL_GPL(devm_pwm_put); |
962 | 962 | ||
963 | /** | ||
964 | * pwm_can_sleep() - report whether PWM access will sleep | ||
965 | * @pwm: PWM device | ||
966 | * | ||
967 | * Returns: True if accessing the PWM can sleep, false otherwise. | ||
968 | */ | ||
969 | bool pwm_can_sleep(struct pwm_device *pwm) | ||
970 | { | ||
971 | return true; | ||
972 | } | ||
973 | EXPORT_SYMBOL_GPL(pwm_can_sleep); | ||
974 | |||
975 | #ifdef CONFIG_DEBUG_FS | 963 | #ifdef CONFIG_DEBUG_FS |
976 | static void pwm_dbg_show(struct pwm_chip *chip, struct seq_file *s) | 964 | static void pwm_dbg_show(struct pwm_chip *chip, struct seq_file *s) |
977 | { | 965 | { |
diff --git a/include/linux/pwm.h b/include/linux/pwm.h index 2c6c5114c089..e15fd3ce6502 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h | |||
@@ -451,8 +451,6 @@ struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id); | |||
451 | struct pwm_device *devm_of_pwm_get(struct device *dev, struct device_node *np, | 451 | struct pwm_device *devm_of_pwm_get(struct device *dev, struct device_node *np, |
452 | const char *con_id); | 452 | const char *con_id); |
453 | void devm_pwm_put(struct device *dev, struct pwm_device *pwm); | 453 | void devm_pwm_put(struct device *dev, struct pwm_device *pwm); |
454 | |||
455 | bool pwm_can_sleep(struct pwm_device *pwm); | ||
456 | #else | 454 | #else |
457 | static inline struct pwm_device *pwm_request(int pwm_id, const char *label) | 455 | static inline struct pwm_device *pwm_request(int pwm_id, const char *label) |
458 | { | 456 | { |
@@ -566,11 +564,6 @@ static inline struct pwm_device *devm_of_pwm_get(struct device *dev, | |||
566 | static inline void devm_pwm_put(struct device *dev, struct pwm_device *pwm) | 564 | static inline void devm_pwm_put(struct device *dev, struct pwm_device *pwm) |
567 | { | 565 | { |
568 | } | 566 | } |
569 | |||
570 | static inline bool pwm_can_sleep(struct pwm_device *pwm) | ||
571 | { | ||
572 | return false; | ||
573 | } | ||
574 | #endif | 567 | #endif |
575 | 568 | ||
576 | static inline void pwm_apply_args(struct pwm_device *pwm) | 569 | static inline void pwm_apply_args(struct pwm_device *pwm) |