Skip to content

Commit

Permalink
hwmon: (adt7410) Use the SIMPLE_DEV_PM_OPS helper macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Guenter Roeck committed Feb 20, 2013
1 parent e0db9c4 commit 436440f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/hwmon/adt7410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 436440f

Please sign in to comment.