ACPI / scan: Move power state initialization to a separate routine
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Jan 2013 13:11:06 +0000 (14:11 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Jan 2013 13:11:06 +0000 (14:11 +0100)
commitf33ce568366ab61b5685bae07306e40f17beb943
tree12fa57fadb9b44e71639474d09a1807146c2fcbf
parent993cbe595dda731471a07f4f65575fadedc570dc
ACPI / scan: Move power state initialization to a separate routine

To reduce indentation level and improve code readability, move the
initialization code related to device power states from
acpi_bus_get_power_flags() to a new routine,
acpi_bus_init_power_state().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c