Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161352
b: refs/heads/master
c: 9d62ec6
h: refs/heads/master
v: v3
  • Loading branch information
Albin Tonnerre authored and Rafael J. Wysocki committed Sep 14, 2009
1 parent 88d4f2c commit f20d6ba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8dd2b42665f9d4ca4fded99f048631b60f669dc5
refs/heads/master: 9d62ec6ca71d71c8a0d2cb1004f476d33f668955
14 changes: 14 additions & 0 deletions trunk/include/linux/pm.h
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,20 @@ struct dev_pm_ops {
int (*runtime_idle)(struct device *dev);
};

/*
* Use this if you want to use the same suspend and resume callbacks for suspend
* to RAM and hibernation.
*/
#define SIMPLE_DEV_PM_OPS(name, suspend_fn, resume_fn) \
struct dev_pm_ops name = { \
.suspend = suspend_fn, \
.resume = resume_fn, \
.freeze = suspend_fn, \
.thaw = resume_fn, \
.poweroff = suspend_fn, \
.restore = resume_fn, \
}

/**
* PM_EVENT_ messages
*
Expand Down

0 comments on commit f20d6ba

Please sign in to comment.