ACPI: introduce helper function acpi_execute_simple_method()
authorJiang Liu <jiang.liu@huawei.com>
Fri, 28 Jun 2013 16:24:39 +0000 (00:24 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 14 Jul 2013 23:33:10 +0000 (01:33 +0200)
commit0db98202605c3d32e023d43c30b5bd878f520976
tree7aec122f45db5c6b6c2f046ccf1eb9fa160fb616
parent952c63e9512b63220886105cfc791507046fa39a
ACPI: introduce helper function acpi_execute_simple_method()

Introduce helper function acpi_execute_simple_method() and use it in
a number of places to simplify 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/battery.c
drivers/acpi/bus.c
drivers/acpi/power.c
drivers/acpi/sleep.c
drivers/acpi/thermal.c
drivers/acpi/utils.c
drivers/acpi/video.c
include/acpi/acpi_bus.h