linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] Input: ucb1400_ts - convert to use dev_pm_ops
@ 2011-11-14  8:36 Dmitry Torokhov
  2011-11-14  8:36 ` [PATCH 2/6] Input: ucb1400_ts - set driver owner Dmitry Torokhov
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Dmitry Torokhov @ 2011-11-14  8:36 UTC (permalink / raw)
  To: linux-input; +Cc: Marek Vasut

Instead of using legacy PM interfaces switch to using dev_pm_ops.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---
 drivers/input/touchscreen/ucb1400_ts.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/input/touchscreen/ucb1400_ts.c b/drivers/input/touchscreen/ucb1400_ts.c
index 3b5b5df..ead7123 100644
--- a/drivers/input/touchscreen/ucb1400_ts.c
+++ b/drivers/input/touchscreen/ucb1400_ts.c
@@ -428,10 +428,10 @@ static int ucb1400_ts_remove(struct platform_device *dev)
 	return 0;
 }
 
-#ifdef CONFIG_PM
-static int ucb1400_ts_resume(struct platform_device *dev)
+#ifdef CONFIG_PM_SLEEP
+static int ucb1400_ts_resume(struct device *dev)
 {
-	struct ucb1400_ts *ucb = dev->dev.platform_data;
+	struct ucb1400_ts *ucb = dev->platform_data;
 
 	if (ucb->ts_task) {
 		/*
@@ -444,16 +444,16 @@ static int ucb1400_ts_resume(struct platform_device *dev)
 	}
 	return 0;
 }
-#else
-#define ucb1400_ts_resume NULL
 #endif
 
+static SIMPLE_DEV_PM_OPS(ucb1400_ts_pm_ops, NULL, ucb1400_ts_resume);
+
 static struct platform_driver ucb1400_ts_driver = {
 	.probe	= ucb1400_ts_probe,
 	.remove	= ucb1400_ts_remove,
-	.resume	= ucb1400_ts_resume,
 	.driver	= {
 		.name	= "ucb1400_ts",
+		.pm	= &ucb1400_ts_pm_ops,
 	},
 };
 
-- 
1.7.6.4


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

end of thread, other threads:[~2011-12-31  3:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-14  8:36 [PATCH 1/6] Input: ucb1400_ts - convert to use dev_pm_ops Dmitry Torokhov
2011-11-14  8:36 ` [PATCH 2/6] Input: ucb1400_ts - set driver owner Dmitry Torokhov
2011-11-14  8:36 ` [PATCH 3/6] Input: usb1400_ts - add __devinit/__devexit section annotations Dmitry Torokhov
2011-11-14  8:36 ` [PATCH 4/6] Input: ucb1400_ts - drop inline annotations Dmitry Torokhov
2011-11-14  8:36 ` [PATCH 5/6] Input: ucb1400_ts - convert to threaded IRQ Dmitry Torokhov
2011-11-16  7:36   ` Daniel Kurtz
2011-11-16  7:47     ` Dmitry Torokhov
2011-11-14  8:36 ` [PATCH 6/6] Input: ucb1400-ts - switch to using dev_xxx() for diagnostic messages Dmitry Torokhov
2011-11-14 10:39 ` [PATCH 1/6] Input: ucb1400_ts - convert to use dev_pm_ops Marek Vasut
2011-11-14 16:49   ` Dmitry Torokhov
2011-11-14 17:04     ` Marek Vasut
2011-12-30 23:17       ` Dmitry Torokhov
2011-12-31  3:13         ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).