Skip to contentSkip to conversation

pwm: samsung: Use SIMPLE_DEV_PM_OPS macro

PATCH Applied Jingoo Han 2 participants 2 messages Feb 26, 2014

Subsystems (2)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 pwm: samsung: Use SIMPLE_DEV_PM_OPS macro

Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

---
 drivers/pwm/pwm-samsung.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/pwm/pwm-samsung.c +2 -3
index b59639e..d66529a 100644
@@ -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		= {
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 6 lines · Jingoo Han

Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.

---
 drivers/pwm/pwm-samsung.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Applied, thanks.

Thierry