ACPI / PM: Move device power state selection routine to device_pm.c
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 2 Nov 2012 00:40:18 +0000 (01:40 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:15:16 +0000 (00:15 +0100)
commit86b3832c64b6d01092216d84dc6a6b300875d0bb
tree3d990b5bee64a33159a3cfef7712949176832f6f
parentec2cd81ccfc055155ef4ca673f207168f516d287
ACPI / PM: Move device power state selection routine to device_pm.c

The ACPI function for choosing device power state is now located
in drivers/acpi/sleep.c, but drivers/acpi/device_pm.c is a more
logical place for it, so move it there.

However, instead of moving the function entirely, move its core only
under a different name and with a different list of arguments, so
that it is more flexible, and leave a wrapper around it in the
original location.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/device_pm.c
drivers/acpi/sleep.c
include/acpi/acpi_bus.h