From: Jingoo Han Date: Thu, 27 Feb 2014 11:38:20 +0000 (+0900) Subject: hwmon: (max6639) Use SIMPLE_DEV_PM_OPS macro X-Git-Tag: firefly_0821_release~176^2~4199^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=768821a302ae98c2d6a570e0ad63780180ba34db;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Roland Stigge Signed-off-by: Guenter Roeck --- 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[] = { MODULE_DEVICE_TABLE(i2c, max6639_id); -static const struct dev_pm_ops max6639_pm_ops = { - SET_SYSTEM_SLEEP_PM_OPS(max6639_suspend, max6639_resume) -}; +static SIMPLE_DEV_PM_OPS(max6639_pm_ops, max6639_suspend, max6639_resume); static struct i2c_driver max6639_driver = { .class = I2C_CLASS_HWMON,