From: Rafael J. Wysocki Date: Wed, 24 Nov 2010 23:07:56 +0000 (+0100) Subject: ACPI / PM: Introduce __acpi_bus_get_power() X-Git-Tag: v2.6.38-rc1~68^2~20^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e6d4fe4296782f1f095575b8213a97c3e925a16;p=pandora-kernel.git ACPI / PM: Introduce __acpi_bus_get_power() It sometimes is necessary to get the power state of an ACPI device without updating its device->power.state field, for example to avoid inconsistencies between device->power.state and the reference counters of the device's power resources. For this purpose introduce __acpi_bus_get_power() that will return the given device's power state via a pointer (instead of modifying device->power.state) and make acpi_bus_get_power() use it. Signed-off-by: Rafael J. Wysocki Signed-off-by: Len Brown --- Reading git-diff-tree failed