mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> 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 <[email protected]> Acked-by: Pavel Machek <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
e9b3aba887
commit
fd4aff1a28
2 changed files with 77 additions and 0 deletions
|
|
@ -364,6 +364,8 @@ acpi_handle acpi_get_child(acpi_handle, acpi_integer);
|
|||
acpi_handle acpi_get_pci_rootbridge_handle(unsigned int, unsigned int);
|
||||
#define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->archdata.acpi_handle))
|
||||
|
||||
int acpi_pm_device_sleep_state(struct device *, int, int *);
|
||||
|
||||
#endif /* CONFIG_ACPI */
|
||||
|
||||
#endif /*__ACPI_BUS_H__*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue