All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [PATCH] hwmon: (max6639) Use SIMPLE_DEV_PM_OPS macro
@ 2014-02-27 11:38 Jingoo Han
  2014-02-27 12:14 ` Roland Stigge
  2014-02-27 14:19 ` Guenter Roeck
  0 siblings, 2 replies; 3+ messages in thread
From: Jingoo Han @ 2014-02-27 11:38 UTC (permalink / raw)
  To: lm-sensors

Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/hwmon/max6639.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/hwmon/max6639.c b/drivers/hwmon/max6639.c
index e4852bb..2852894 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,
-- 
1.7.10.4



_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [lm-sensors] [PATCH] hwmon: (max6639) Use SIMPLE_DEV_PM_OPS macro
  2014-02-27 11:38 [lm-sensors] [PATCH] hwmon: (max6639) Use SIMPLE_DEV_PM_OPS macro Jingoo Han
@ 2014-02-27 12:14 ` Roland Stigge
  2014-02-27 14:19 ` Guenter Roeck
  1 sibling, 0 replies; 3+ messages in thread
From: Roland Stigge @ 2014-02-27 12:14 UTC (permalink / raw)
  To: lm-sensors

On 02/27/2014 12:38 PM, Jingoo Han wrote:
> Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.
> 
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
>  drivers/hwmon/max6639.c |    4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/hwmon/max6639.c b/drivers/hwmon/max6639.c
> index e4852bb..2852894 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,
> 

Acked-by: Roland Stigge <stigge@antcom.de>

Thanks!

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [lm-sensors] [PATCH] hwmon: (max6639) Use SIMPLE_DEV_PM_OPS macro
  2014-02-27 11:38 [lm-sensors] [PATCH] hwmon: (max6639) Use SIMPLE_DEV_PM_OPS macro Jingoo Han
  2014-02-27 12:14 ` Roland Stigge
@ 2014-02-27 14:19 ` Guenter Roeck
  1 sibling, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2014-02-27 14:19 UTC (permalink / raw)
  To: lm-sensors

On 02/27/2014 03:38 AM, Jingoo Han wrote:
> Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---

Applied.

Thanks,
Guenter



_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-27 14:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-27 11:38 [lm-sensors] [PATCH] hwmon: (max6639) Use SIMPLE_DEV_PM_OPS macro Jingoo Han
2014-02-27 12:14 ` Roland Stigge
2014-02-27 14:19 ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.