Loading drivers/pwm/core.c +0 −12 Original line number Diff line number Diff line Loading @@ -960,18 +960,6 @@ void devm_pwm_put(struct device *dev, struct pwm_device *pwm) } EXPORT_SYMBOL_GPL(devm_pwm_put); /** * pwm_can_sleep() - report whether PWM access will sleep * @pwm: PWM device * * Returns: True if accessing the PWM can sleep, false otherwise. */ bool pwm_can_sleep(struct pwm_device *pwm) { return true; } EXPORT_SYMBOL_GPL(pwm_can_sleep); #ifdef CONFIG_DEBUG_FS static void pwm_dbg_show(struct pwm_chip *chip, struct seq_file *s) { Loading include/linux/pwm.h +0 −7 Original line number Diff line number Diff line Loading @@ -451,8 +451,6 @@ struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id); struct pwm_device *devm_of_pwm_get(struct device *dev, struct device_node *np, const char *con_id); void devm_pwm_put(struct device *dev, struct pwm_device *pwm); bool pwm_can_sleep(struct pwm_device *pwm); #else static inline struct pwm_device *pwm_request(int pwm_id, const char *label) { Loading Loading @@ -566,11 +564,6 @@ static inline struct pwm_device *devm_of_pwm_get(struct device *dev, static inline void devm_pwm_put(struct device *dev, struct pwm_device *pwm) { } static inline bool pwm_can_sleep(struct pwm_device *pwm) { return false; } #endif static inline void pwm_apply_args(struct pwm_device *pwm) Loading Loading
drivers/pwm/core.c +0 −12 Original line number Diff line number Diff line Loading @@ -960,18 +960,6 @@ void devm_pwm_put(struct device *dev, struct pwm_device *pwm) } EXPORT_SYMBOL_GPL(devm_pwm_put); /** * pwm_can_sleep() - report whether PWM access will sleep * @pwm: PWM device * * Returns: True if accessing the PWM can sleep, false otherwise. */ bool pwm_can_sleep(struct pwm_device *pwm) { return true; } EXPORT_SYMBOL_GPL(pwm_can_sleep); #ifdef CONFIG_DEBUG_FS static void pwm_dbg_show(struct pwm_chip *chip, struct seq_file *s) { Loading
include/linux/pwm.h +0 −7 Original line number Diff line number Diff line Loading @@ -451,8 +451,6 @@ struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id); struct pwm_device *devm_of_pwm_get(struct device *dev, struct device_node *np, const char *con_id); void devm_pwm_put(struct device *dev, struct pwm_device *pwm); bool pwm_can_sleep(struct pwm_device *pwm); #else static inline struct pwm_device *pwm_request(int pwm_id, const char *label) { Loading Loading @@ -566,11 +564,6 @@ static inline struct pwm_device *devm_of_pwm_get(struct device *dev, static inline void devm_pwm_put(struct device *dev, struct pwm_device *pwm) { } static inline bool pwm_can_sleep(struct pwm_device *pwm) { return false; } #endif static inline void pwm_apply_args(struct pwm_device *pwm) Loading