Toggle navigation
Help
Log In
Help
Log In
Home
Messages
Hashtags
Subgroups
×
×
×
Close
Likes
devel@lists.zephyrproject.org
Message
×
Close
Search
Single
Toggle Dropdown
Messages
Topics
Expanded
Polls
Search
previous page
#2376
next page
[PATCH 3/8] device: Add generic device_{suspend, resume}() API
dirk.brandewie@...
#2376
From: Dirk Brandewie <dirk.j.brandewie(a)intel.com>
Provide an API to call the device suspend/resume functions.
Change-Id: I352481897a4bf431fc9eb78540fc81f5e552c4be
Signed-off-by: Dirk Brandewie <dirk.j.brandewie(a)intel.com>
---
include/device.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/include/device.h b/include/device.h
index 5dbb52f..40adbe8 100644
--- a/include/device.h
+++ b/include/device.h
@@ -266,6 +266,16 @@ static inline int _null_suspend_resume(struct device *device)
return 0;
};
+static inline int device_suspend(struct device *device)
+{
+ return device->config->dev_ops->suspend(device);
+}
+
+static inline int device_resume(struct device *device)
+{
+ return device->config->dev_ops->resume(device);
+}
+
/**
* Synchronous calls API
*/
--
2.4.3
More
previous page
#2376
next page
Join
devel@lists.zephyrproject.org to automatically receive all group messages.
×
Close
Report Message
Reason
Report to Moderators
I think this message isn't appropriate for our Group. The Group moderators are responsible for maintaining their community and can address these issues.
Report to Zephyr Project Support
I think this violates the Terms of Service. This includes: harm to minors, violence or threats, harassment or privacy invasion, impersonation or misrepresentation, fraud or phishing.
Note:
Your email address is included with the abuse report.
×
Close
Verify Delete
Are you sure you wish to delete this message from the message archives of devel@lists.zephyrproject.org?
This cannot be undone.
×
Close
Verify Repost
Are you sure you wish to repost this message?
More
Home
Messages
Hashtags
Subgroups
Terms
Toggle navigation
Terms
©
2021
Groups.io