ACPI / PM: Expose power states of ACPI devices to user space
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 Jan 2013 11:49:59 +0000 (12:49 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 24 Jan 2013 11:49:59 +0000 (12:49 +0100)
commit836aedb1414d4724b2ec68dd19810960c593720c
tree4f826283e16638ba521f5d31b021d79166cfde99
parentcf860be639d86ed77af179c925085ae0721ae602
ACPI / PM: Expose power states of ACPI devices to user space

Make it possible to retrieve the current power state of a device with
ACPI power management from user space via sysfs by adding two new
attributes, power_state and real_power_state, to the sysfs directory
associated with the struct acpi_device object representing the
device's ACPI node.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-devices-power_state [new file with mode: 0644]
Documentation/ABI/testing/sysfs-devices-real_power_state [new file with mode: 0644]
drivers/acpi/scan.c