Linux PWM subsystem development
 help / color / mirror / Atom feed
* [PATCH] pwm: samsung: Use SIMPLE_DEV_PM_OPS macro
@ 2014-02-26  1:17 Jingoo Han
  2014-02-26 15:17 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2014-02-26  1:17 UTC (permalink / raw)
  To: 'Thierry Reding'; +Cc: linux-pwm, 'Jingoo Han'

Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/pwm/pwm-samsung.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/pwm/pwm-samsung.c b/drivers/pwm/pwm-samsung.c
index b59639e..d66529a 100644
--- a/drivers/pwm/pwm-samsung.c
+++ b/drivers/pwm/pwm-samsung.c
@@ -598,9 +598,8 @@ static int pwm_samsung_resume(struct device *dev)
 }
 #endif
 
-static const struct dev_pm_ops pwm_samsung_pm_ops = {
-	SET_SYSTEM_SLEEP_PM_OPS(pwm_samsung_suspend, pwm_samsung_resume)
-};
+static SIMPLE_DEV_PM_OPS(pwm_samsung_pm_ops, pwm_samsung_suspend,
+			 pwm_samsung_resume);
 
 static struct platform_driver pwm_samsung_driver = {
 	.driver		= {
-- 
1.7.10.4



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

* Re: [PATCH] pwm: samsung: Use SIMPLE_DEV_PM_OPS macro
  2014-02-26  1:17 [PATCH] pwm: samsung: Use SIMPLE_DEV_PM_OPS macro Jingoo Han
@ 2014-02-26 15:17 ` Thierry Reding
  0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2014-02-26 15:17 UTC (permalink / raw)
  To: Jingoo Han; +Cc: linux-pwm

[-- Attachment #1: Type: text/plain, Size: 315 bytes --]

On Wed, Feb 26, 2014 at 10:17:53AM +0900, 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/pwm/pwm-samsung.c |    5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)

Applied, thanks.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2014-02-26 15:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-26  1:17 [PATCH] pwm: samsung: Use SIMPLE_DEV_PM_OPS macro Jingoo Han
2014-02-26 15:17 ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox