summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-02-15 17:57:12 +0100
committerGuenter Roeck <linux@roeck-us.net>2013-02-19 17:34:15 -0800
commit436440fc166fd6127fc1e8e8415e7f2830dd9c5e (patch)
tree7b82cc42ba00ed8296ea4ca64c91007ea614ef81 /drivers/hwmon
parente0db9c4bfe2f44073fcdc1a39a13eb66b618098c (diff)
downloadblackbird-op-linux-436440fc166fd6127fc1e8e8415e7f2830dd9c5e.tar.gz
blackbird-op-linux-436440fc166fd6127fc1e8e8415e7f2830dd9c5e.zip
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>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/adt7410.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hwmon/adt7410.c b/drivers/hwmon/adt7410.c
index ae8081525c63..4ae16e05ca28 100644
--- a/drivers/hwmon/adt7410.c
+++ b/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
OpenPOWER on IntegriCloud