]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hwmon: (w83627ehf) Add support for hibernate
authorHarald Judt <h.judt@gmx.at>
Thu, 1 Aug 2013 14:18:45 +0000 (16:18 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 4 Aug 2013 01:11:28 +0000 (18:11 -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/w83627ehf.c

index 286ca7bae97cd9da89d8866f6c21f69d2ef74339..23ff210513d314da9fa09e944e30c4338f9d1313 100644 (file)
@@ -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)