From: Marek Vasut <marek.vasut@gmail.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org
Subject: Re: [PATCH 1/6] Input: ucb1400_ts - convert to use dev_pm_ops
Date: Sat, 31 Dec 2011 04:13:22 +0100 [thread overview]
Message-ID: <201112310413.22654.marek.vasut@gmail.com> (raw)
In-Reply-To: <20111230231754.GA4172@core.coreip.homeip.net>
> On Mon, Nov 14, 2011 at 06:04:12PM +0100, Marek Vasut wrote:
> > > On Mon, Nov 14, 2011 at 11:39:17AM +0100, Marek Vasut wrote:
> > > > > 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,
> > > > >
> > > > > },
> > > > >
> > > > > };
> > > >
> > > > Hi,
> > > >
> > > > I went through the patchset, but didn't test it. Though the changes
> > > > look reasonable. I'll have time to test this sometimes next week
> > > > MAYBE, or it MIGHT tell someone else to test, I can't promise
> > > > anything here though.
> > > >
> > > > Please add to all patches my:
> > > >
> > > > Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
> > >
> > > Thanks Marek. I have not tested these either so it would be nice to
> > > find someone who could. However there is no urgency as we have some
> > > time before 3.3 merge window opens.
> >
> > I can, I have devices with this chip available ... just not now, real
> > life is haunting me :)
>
> Hi Marek,
>
> Any chance you will be able to try these patches before 3.3 merge window
> opens?
>
> Thanks,
Hi Dmitry.
Honestly, reality is just crap. But, I'm fine with these, please add my:
Acked-by: Marek Vasut <marek.vasut@gmail.com>
prev parent reply other threads:[~2011-12-31 3:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201112310413.22654.marek.vasut@gmail.com \
--to=marek.vasut@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.