Messages in this thread |  | | | From | "Rafael J. Wysocki" <> | | Subject | Re: [PATCH V2] au1xmmc: dev_pm_ops conversion | | Date | Sun, 26 Jul 2009 21:38:18 +0200 |
| |
On Sunday 26 July 2009, Mark Brown wrote: > On Sat, Jul 25, 2009 at 09:39:30PM +0200, Rafael J. Wysocki wrote: > > > Yes, they would. In general, you'd probably want to do something like this: > > > static struct dev_pm_ops au1xmmc_pmops = { > > .resume = au1xmmc_resume, > > .suspend = au1xmmc_suspend, > > .freeze = au1xmmc_resume, > > .thaw = au1xmmc_suspend, > > I'd have expected freeze and thaw to be the other way around here?
Sure, sorry.
.suspend() corresponds to .freeze() and .poweroff(), while .resume() corresponds to .thaw() and .restore().
Best, Rafael
|  |