Skip to content

Commit

Permalink
hwmon: (max6639) Use SIMPLE_DEV_PM_OPS macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and Guenter Roeck committed Mar 3, 2014
1 parent a41a892 commit 768821a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/hwmon/max6639.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 768821a

Please sign in to comment.