diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-02-27 06:38:20 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-03-03 11:01:06 -0500 |
commit | 768821a302ae98c2d6a570e0ad63780180ba34db (patch) | |
tree | 3b11c0c4a25c9832ef630f1ee2c507ab689e8d4f /drivers/hwmon | |
parent | a41a8927e7adfa5de607d5bd43fa8fbbef44d6f2 (diff) |
hwmon: (max6639) Use SIMPLE_DEV_PM_OPS macro
Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/max6639.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hwmon/max6639.c b/drivers/hwmon/max6639.c index 0c5bdfeb76bc..70650de2cbd1 100644 --- a/drivers/hwmon/max6639.c +++ b/drivers/hwmon/max6639.c | |||
@@ -592,9 +592,7 @@ static const struct i2c_device_id max6639_id[] = { | |||
592 | 592 | ||
593 | MODULE_DEVICE_TABLE(i2c, max6639_id); | 593 | MODULE_DEVICE_TABLE(i2c, max6639_id); |
594 | 594 | ||
595 | static const struct dev_pm_ops max6639_pm_ops = { | 595 | static SIMPLE_DEV_PM_OPS(max6639_pm_ops, max6639_suspend, max6639_resume); |
596 | SET_SYSTEM_SLEEP_PM_OPS(max6639_suspend, max6639_resume) | ||
597 | }; | ||
598 | 596 | ||
599 | static struct i2c_driver max6639_driver = { | 597 | static struct i2c_driver max6639_driver = { |
600 | .class = I2C_CLASS_HWMON, | 598 | .class = I2C_CLASS_HWMON, |