mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-12 08:00:09 +00:00
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>
This commit is contained in:
parent
e0db9c4bfe
commit
436440fc16
@ -437,10 +437,8 @@ static int adt7410_resume(struct device *dev)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct dev_pm_ops adt7410_dev_pm_ops = {
|
static SIMPLE_DEV_PM_OPS(adt7410_dev_pm_ops, adt7410_suspend, adt7410_resume);
|
||||||
.suspend = adt7410_suspend,
|
|
||||||
.resume = adt7410_resume,
|
|
||||||
};
|
|
||||||
#define ADT7410_DEV_PM_OPS (&adt7410_dev_pm_ops)
|
#define ADT7410_DEV_PM_OPS (&adt7410_dev_pm_ops)
|
||||||
#else
|
#else
|
||||||
#define ADT7410_DEV_PM_OPS NULL
|
#define ADT7410_DEV_PM_OPS NULL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user