ACPI: introduce helper interfaces for _DSM method
authorJiang Liu <jiang.liu@linux.intel.com>
Thu, 19 Dec 2013 12:38:10 +0000 (20:38 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 5 Jan 2014 15:07:14 +0000 (16:07 +0100)
commita65ac52041cccaf598995bc44340849027f1d79b
tree66feec04a0a904218e076cae1296dd3bbad862f6
parente73be4a78b500374a1c42810dc073189036b4dd8
ACPI: introduce helper interfaces for _DSM method

There are several drivers making use of ACPI _DSM method to detect
and invoke device specific methods. Currently every driver has
implemented its private version to support ACPI _DSM method.
So this patch introduces three helper functions to support ACPI _DSM
method, which will be used to replace open-coded versions.

It helps to simplify code and improve code readability.

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