PM / Runtime: Reduce code duplication in core helper functions
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 4 Oct 2010 20:08:01 +0000 (22:08 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sat, 16 Oct 2010 23:57:49 +0000 (01:57 +0200)
Reduce code duplication in rpm_idle(), rpm_suspend() and rpm_resume()
by using local pointers to store callback addresses and moving some
duplicated code into a separate function.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>

No differences found