mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04: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 <[email protected]> Reviewed-by: Hartmut Knaack <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
e0db9c4bfe
commit
436440fc16
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue