瀏覽代碼

hwmon: (adt7410) Use the SIMPLE_DEV_PM_OPS helper macro

Use the SIMPLE_DEV_PM_OPS macro to declare the driver's pm_ops.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Lars-Peter Clausen 12 年之前
父節點
當前提交
436440fc16
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      drivers/hwmon/adt7410.c

+ 2 - 4
drivers/hwmon/adt7410.c

@@ -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