ACPI: introduce two helper functions for _EJ0 and _LCK
authorJiang Liu <jiang.liu@huawei.com>
Fri, 28 Jun 2013 16:24:40 +0000 (00:24 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 14 Jul 2013 23:33:10 +0000 (01:33 +0200)
commit7d2421f84b445dc48c68d33911f1fd6ce6853ee3
tree8526f0747a4fcfff28176e5e8c890a9bf0246a28
parent0db98202605c3d32e023d43c30b5bd878f520976
ACPI: introduce two helper functions for _EJ0 and _LCK

Introduce two helper functions, acpi_evaluate_ej0() and
acpi_evaluate_lck(), that will execute the _EJ0 and _LCK ACPI
control methods, respectively, and use them to simplify the
ACPI scan code.

[rjw: Changelog]
Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c
drivers/acpi/utils.c
include/acpi/acpi_bus.h