projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8b3a3a
)
hwmon: (nct6775) Add support for hibernate
author
Harald Judt
<h.judt@gmx.at>
Tue, 30 Jul 2013 17:50:16 +0000
(19:50 +0200)
committer
Guenter Roeck
<linux@roeck-us.net>
Mon, 12 Aug 2013 05:10:39 +0000
(22:10 -0700)
Hibernation uses its own set of callback functions, even if the code
is the same as the code used for suspend/restore.
Signed-off-by: Harald Judt <h.judt@gmx.at>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/nct6775.c
b/drivers/hwmon/nct6775.c
index a0ace075e918cbcaf0180b0fe3d0e3a23a4522e1..6eb03ce2cff4b46a910787f8a7954bf5d00c6f99 100644
(file)
--- a/
drivers/hwmon/nct6775.c
+++ b/
drivers/hwmon/nct6775.c
@@
-3997,6
+3997,8
@@
static int nct6775_resume(struct device *dev)
static const struct dev_pm_ops nct6775_dev_pm_ops = {
.suspend = nct6775_suspend,
.resume = nct6775_resume,
+ .freeze = nct6775_suspend,
+ .restore = nct6775_resume,
};
#define NCT6775_DEV_PM_OPS (&nct6775_dev_pm_ops)