linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] PM: runtime: Replace inline function pm_runtime_callbacks_present()
@ 2021-04-02  6:14 YueHaibing
  2021-04-08 17:15 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2021-04-02  6:14 UTC (permalink / raw)
  To: rjw, ulf.hansson; +Cc: linux-pm, linux-kernel, YueHaibing

commit 9a7875461fd0 ("PM: runtime: Replace pm_runtime_callbacks_present()")
forget to change the inline version.

Fixes: 9a7875461fd0 ("PM: runtime: Replace pm_runtime_callbacks_present()")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 include/linux/pm_runtime.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h
index b492ae00cc90..6c08a085367b 100644
--- a/include/linux/pm_runtime.h
+++ b/include/linux/pm_runtime.h
@@ -265,7 +265,7 @@ static inline void pm_runtime_no_callbacks(struct device *dev) {}
 static inline void pm_runtime_irq_safe(struct device *dev) {}
 static inline bool pm_runtime_is_irq_safe(struct device *dev) { return false; }
 
-static inline bool pm_runtime_callbacks_present(struct device *dev) { return false; }
+static inline bool pm_runtime_has_no_callbacks(struct device *dev) { return false; }
 static inline void pm_runtime_mark_last_busy(struct device *dev) {}
 static inline void __pm_runtime_use_autosuspend(struct device *dev,
 						bool use) {}
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] PM: runtime: Replace inline function pm_runtime_callbacks_present()
  2021-04-02  6:14 [PATCH -next] PM: runtime: Replace inline function pm_runtime_callbacks_present() YueHaibing
@ 2021-04-08 17:15 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2021-04-08 17:15 UTC (permalink / raw)
  To: YueHaibing
  Cc: Rafael J. Wysocki, Ulf Hansson, Linux PM, Linux Kernel Mailing List

On Fri, Apr 2, 2021 at 8:14 AM YueHaibing <yuehaibing@huawei.com> wrote:
>
> commit 9a7875461fd0 ("PM: runtime: Replace pm_runtime_callbacks_present()")
> forget to change the inline version.
>
> Fixes: 9a7875461fd0 ("PM: runtime: Replace pm_runtime_callbacks_present()")
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
>  include/linux/pm_runtime.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h
> index b492ae00cc90..6c08a085367b 100644
> --- a/include/linux/pm_runtime.h
> +++ b/include/linux/pm_runtime.h
> @@ -265,7 +265,7 @@ static inline void pm_runtime_no_callbacks(struct device *dev) {}
>  static inline void pm_runtime_irq_safe(struct device *dev) {}
>  static inline bool pm_runtime_is_irq_safe(struct device *dev) { return false; }
>
> -static inline bool pm_runtime_callbacks_present(struct device *dev) { return false; }
> +static inline bool pm_runtime_has_no_callbacks(struct device *dev) { return false; }
>  static inline void pm_runtime_mark_last_busy(struct device *dev) {}
>  static inline void __pm_runtime_use_autosuspend(struct device *dev,
>                                                 bool use) {}
> --

Applied as 5.13 material, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-08 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-02  6:14 [PATCH -next] PM: runtime: Replace inline function pm_runtime_callbacks_present() YueHaibing
2021-04-08 17:15 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).