summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/w83627ehf.c
diff options
context:
space:
mode:
authorHarald Judt <h.judt@gmx.at>2013-08-01 16:18:45 +0200
committerGuenter Roeck <linux@roeck-us.net>2013-08-12 07:10:40 +0200
commite3b20b3f586604cde718a609b39577086351ed49 (patch)
tree2cfb5c4f7389b8d0166430b17a99f02eb31a4315 /drivers/hwmon/w83627ehf.c
parenthwmon: (nct6775) Add support for hibernate (diff)
downloadlinux-e3b20b3f586604cde718a609b39577086351ed49.tar.xz
linux-e3b20b3f586604cde718a609b39577086351ed49.zip
hwmon: (w83627ehf) Add support for hibernate
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>
Diffstat (limited to '')
-rw-r--r--drivers/hwmon/w83627ehf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwmon/w83627ehf.c b/drivers/hwmon/w83627ehf.c
index 286ca7bae97c..23ff210513d3 100644
--- a/drivers/hwmon/w83627ehf.c
+++ b/drivers/hwmon/w83627ehf.c
@@ -2694,6 +2694,8 @@ static int w83627ehf_resume(struct device *dev)
static const struct dev_pm_ops w83627ehf_dev_pm_ops = {
.suspend = w83627ehf_suspend,
.resume = w83627ehf_resume,
+ .freeze = w83627ehf_suspend,
+ .restore = w83627ehf_resume,
};
#define W83627EHF_DEV_PM_OPS (&w83627ehf_dev_pm_ops)