]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hwmon: (adt7410) Use the SIMPLE_DEV_PM_OPS helper macro
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 15 Feb 2013 16:57:12 +0000 (17:57 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 15 Feb 2013 20:02:08 +0000 (12:02 -0800)
Use the SIMPLE_DEV_PM_OPS macro to declare the driver's pm_ops.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/adt7410.c

index ae8081525c6321d774af9aa14636acfc33cca421..4ae16e05ca28eff46cb68b4d48f2f1e3d71b3ef5 100644 (file)
@@ -437,10 +437,8 @@ static int adt7410_resume(struct device *dev)
        return ret;
 }
 
-static const struct dev_pm_ops adt7410_dev_pm_ops = {
-       .suspend        = adt7410_suspend,
-       .resume         = adt7410_resume,
-};
+static SIMPLE_DEV_PM_OPS(adt7410_dev_pm_ops, adt7410_suspend, adt7410_resume);
+
 #define ADT7410_DEV_PM_OPS (&adt7410_dev_pm_ops)
 #else
 #define ADT7410_DEV_PM_OPS NULL