Skip to contentSkip to conversation

hwmon: (max6639) Use SIMPLE_DEV_PM_OPS macro

PATCH Applied Jingoo Han 3 participants 3 messages Feb 27, 2014 Hardware monitoring

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 hwmon: (max6639) Use SIMPLE_DEV_PM_OPS macro

Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

---
 drivers/hwmon/max6639.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/hwmon/max6639.c +1 -3
index e4852bb..2852894 100644
@@ -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,
Signature · 8 lines
1.7.10.4



_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · Jingoo Han

Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

---
 drivers/hwmon/max6639.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/hwmon/max6639.c +0 -0
index e4852bb..2852894 100644

drivers/hwmon/max6639.c static const struct i2c_device_id max6639_id[] = { · line 598

Quoted 10 lines
drivers/hwmon/max6639.c +1 -3
@@ -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,

Thanks!

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors