summaryrefslogtreecommitdiffstats
path: root/include/acpi/acpi_bus.h
diff options
context:
space:
mode:
authorRafael J. Wysocki2013-01-17 14:11:08 +0100
committerRafael J. Wysocki2013-01-17 14:11:08 +0100
commit96bfd3cee2a741906b3ef5c1096d2f0a0b8025e0 (patch)
tree9efdfad1f1206821057931f0fb67313eada8727d /include/acpi/acpi_bus.h
parentACPI / PM: More visible function for retrieving device power states (diff)
downloadkernel-qcow2-linux-96bfd3cee2a741906b3ef5c1096d2f0a0b8025e0.tar.gz
kernel-qcow2-linux-96bfd3cee2a741906b3ef5c1096d2f0a0b8025e0.tar.xz
kernel-qcow2-linux-96bfd3cee2a741906b3ef5c1096d2f0a0b8025e0.zip
ACPI / PM: Common string representations of device power states
The function returning string representations of ACPI device power states, state_string((), is now static, because it is only used internally in drivers/acpi/bus.c. However, it will be used outside of that file going forward, so rename it to acpi_power_state_string(), add a kerneldoc comment to it and add its header to acpi_bus.h. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r--include/acpi/acpi_bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 9d7c2ca0f1f7..71eceb99d411 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -331,6 +331,7 @@ acpi_status acpi_bus_get_status_handle(acpi_handle handle,
unsigned long long *sta);
int acpi_bus_get_status(struct acpi_device *device);
int acpi_bus_set_power(acpi_handle handle, int state);
+const char *acpi_power_state_string(int state);
int acpi_device_get_power(struct acpi_device *device, int *state);
int acpi_device_set_power(struct acpi_device *device, int state);
int acpi_bus_update_power(acpi_handle handle, int *state_p);