ACPI / PM: Prevent acpi_power_get_inferred_state() from making changes
commit32a00d274e877eab3ea7ab196b75c9be5170d25e
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 24 Nov 2010 23:05:17 +0000 (25 00:05 +0100)
committerLen Brown <len.brown@intel.com>
Wed, 12 Jan 2011 09:48:43 +0000 (12 04:48 -0500)
tree0b7a515e8b2328e8cf8b22794cdf81ab19838b5d
parent3c0eee3fe6a3a1c745379547c7e7c904aa64f6d5
ACPI / PM: Prevent acpi_power_get_inferred_state() from making changes

acpi_power_get_inferred_state() should not update
device->power.state behind the back of its caller, so make it return
the state via a pointer instead.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/bus.c
drivers/acpi/internal.h
drivers/acpi/power.c