diff options
author | Shaohua Li <shaohua.li@intel.com> | 2007-07-17 16:40:25 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-07-22 04:17:47 -0400 |
commit | fd4aff1a28eecbd729b409bf7d3eff5948f20414 (patch) | |
tree | af015ea8c001dd4d405a453c91a8e74dc0fa91b7 /include/acpi | |
parent | e9b3aba887f47f9cd64de20fec9c333a932b70dc (diff) |
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>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acpi_bus.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index c6fa5e023bc7..529d03554c7a 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -364,6 +364,8 @@ acpi_handle acpi_get_child(acpi_handle, acpi_integer); | |||
364 | acpi_handle acpi_get_pci_rootbridge_handle(unsigned int, unsigned int); | 364 | acpi_handle acpi_get_pci_rootbridge_handle(unsigned int, unsigned int); |
365 | #define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->archdata.acpi_handle)) | 365 | #define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->archdata.acpi_handle)) |
366 | 366 | ||
367 | int acpi_pm_device_sleep_state(struct device *, int, int *); | ||
368 | |||
367 | #endif /* CONFIG_ACPI */ | 369 | #endif /* CONFIG_ACPI */ |
368 | 370 | ||
369 | #endif /*__ACPI_BUS_H__*/ | 371 | #endif /*__ACPI_BUS_H__*/ |