Skip to content

Commit 768821a

Browse files
Jingoo Hangroeck
authored andcommitted
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 <[email protected]> Acked-by: Roland Stigge <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
1 parent a41a892 commit 768821a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/hwmon/max6639.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,7 @@ static const struct i2c_device_id max6639_id[] = {
592592

593593
MODULE_DEVICE_TABLE(i2c, max6639_id);
594594

595-
static const struct dev_pm_ops max6639_pm_ops = {
596-
SET_SYSTEM_SLEEP_PM_OPS(max6639_suspend, max6639_resume)
597-
};
595+
static SIMPLE_DEV_PM_OPS(max6639_pm_ops, max6639_suspend, max6639_resume);
598596

599597
static struct i2c_driver max6639_driver = {
600598
.class = I2C_CLASS_HWMON,

0 commit comments

Comments
 (0)