git: 66e0e1636849 - stable/13 - linuxkpi: Add `pm_runtime_suspended()`

From: Jean-Sébastien Pédron <dumbbell_at_FreeBSD.org>
Date: Thu, 16 Feb 2023 11:55:43 UTC
The branch stable/13 has been updated by dumbbell (ports committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=66e0e1636849da5c9109a553bef5f483cad6b7c3

commit 66e0e1636849da5c9109a553bef5f483cad6b7c3
Author:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
AuthorDate: 2023-01-11 22:23:14 +0000
Commit:     Jean-Sébastien Pédron <dumbbell@FreeBSD.org>
CommitDate: 2023-02-16 11:55:12 +0000

    linuxkpi: Add `pm_runtime_suspended()`
    
    Reviewed by:    manu
    Approved by:    manu
    Differential Revision:  https://reviews.freebsd.org/D38083
    
    (cherry picked from commit 710c6084d11025fb3640dc1146ae1b157475333b)
---
 sys/compat/linuxkpi/common/include/linux/pm_runtime.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/pm_runtime.h b/sys/compat/linuxkpi/common/include/linux/pm_runtime.h
index 42c96a92b1ad..616dd508e562 100644
--- a/sys/compat/linuxkpi/common/include/linux/pm_runtime.h
+++ b/sys/compat/linuxkpi/common/include/linux/pm_runtime.h
@@ -40,4 +40,10 @@ pm_runtime_get_if_active(struct device *dev, bool x)
 	return 1;
 }
 
+static inline int
+pm_runtime_suspended(struct device *dev)
+{
+	return 0;
+}
+
 #endif	/* _LINUXKPI_LINUX_PM_RUNTIME_H_ */