Grygorii Strashko dd378b1bca hwmon: (tmp102) add hibernation callbacks
Setting a dev_pm_ops suspend/resume pair but not a set of
hibernation functions means those pm functions will not be
called upon hibernation.
Fix this by using SIMPLE_DEV_PM_OPS, which appropriately
assigns the suspend and hibernation handlers and move
mp102_suspend/tmp102_resume under CONFIG_PM_SLEEP to avoid
build warnings.

Signed-off-by: Grygorii Strashko <Grygorii.Strashko@linaro.org>
[groeck: Declare tmp102_dev_pm_ops as static variable]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2015-02-03 12:17:12 -08:00
..
2014-12-14 16:10:09 -08:00
2015-01-15 15:19:10 -07:00
2015-01-23 14:08:13 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:43:47 -08:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2015-01-24 14:34:54 -08:00
2014-12-17 09:59:26 -08:00
2015-01-17 08:18:08 +13:00
2014-12-17 09:59:26 -08:00
2014-12-17 10:10:51 -08:00
2014-12-29 13:24:38 -08:00
2014-12-14 16:10:09 -08:00
2015-01-24 14:34:54 -08:00
2014-12-14 16:43:47 -08:00
2015-01-14 16:27:23 -08:00
2015-01-13 15:13:45 +02:00
2014-12-14 16:43:47 -08:00
2014-12-15 18:06:13 -08:00