[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20141009083731.GB3588@ci00147.xsens-tech.local>
Date: Thu, 9 Oct 2014 10:37:31 +0200
From: Frans Klaver <frans.klaver@...ns.com>
To: Guenter Roeck <linux@...ck-us.net>
CC: Sebastian Reichel <sre@...nel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 1/2] power: reset: add LTC2952 poweroff support
On Tue, Oct 07, 2014 at 10:15:44AM +0200, Frans Klaver wrote:
> On Mon, Oct 06, 2014 at 02:32:10PM -0700, Guenter Roeck wrote:
> > On Mon, Oct 06, 2014 at 10:40:35AM +0200, Frans Klaver wrote:
> > > +static struct platform_driver ltc2952_poweroff_driver = {
> > > + .probe = ltc2952_poweroff_probe,
> > > + .remove = ltc2952_poweroff_remove,
> > > + .driver = {
> > > + .name = "ltc2952-poweroff",
> > > + .owner = THIS_MODULE,
> > > + .of_match_table = of_ltc2952_poweroff_match,
> > > + },
> > > + .suspend = ltc2952_poweroff_suspend,
> > > + .resume = ltc2952_poweroff_resume,
> >
> > I think you are supposed to put the suspend and resume calls into the driver
> > structure. The platform code names the callbacks here 'legacy'.
>
> I'll check that out.
They are supposed to go into a pm_ops structure, which is pointed at in
driver's pm pointer. I'll drop them in any case. It would lead to a
bunch of boiler plate for nothing.
Frans
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists