ACPI: Add acpi_pm_device_sleep_state helper routine
commitfd4aff1a28eecbd729b409bf7d3eff5948f20414
authorShaohua Li <shaohua.li@intel.com>
Tue, 17 Jul 2007 20:40:25 +0000 (17 22:40 +0200)
committerLen Brown <len.brown@intel.com>
Sun, 22 Jul 2007 08:17:47 +0000 (22 04:17 -0400)
treeaf015ea8c001dd4d405a453c91a8e74dc0fa91b7
parente9b3aba887f47f9cd64de20fec9c333a932b70dc
ACPI: Add acpi_pm_device_sleep_state helper routine

Based on the David Brownell's patch at
http://marc.info/?l=linux-acpi&m=117873972806360&w=2
updated by: Rafael J. Wysocki <rjw@sisk.pl>

Add a helper routine returning the lowest power (highest number) ACPI device
power state that given device can be in while the system is in the sleep state
indicated by acpi_target_sleep_state .

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/sleep/main.c
include/acpi/acpi_bus.h