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

Introduce helper function acpi_has_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/ec.c
drivers/acpi/processor_perflib.c
drivers/acpi/resource.c
drivers/acpi/scan.c
drivers/acpi/utils.c
drivers/acpi/video.c
drivers/acpi/video_detect.c
include/acpi/acpi_bus.h