From: Mika Westerberg Date: Wed, 31 Oct 2012 21:44:41 +0000 (+0100) Subject: ACPI: Provide generic functions for matching ACPI device nodes X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~88^2~15^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf761af9ee0f2c172710ad2b7ca029016b5d4c45;p=pandora-kernel.git ACPI: Provide generic functions for matching ACPI device nodes Introduce function acpi_match_device() allowing callers to match struct device objects with populated acpi_handle fields against arrays of ACPI device IDs. Also introduce function acpi_driver_match_device() using acpi_match_device() internally and allowing callers to match a struct device object against an array of ACPI device IDs provided by a device driver. Additionally, introduce macro ACPI_PTR() that may be used by device drivers to escape pointers to data structures whose definitions depend on CONFIG_ACPI. Signed-off-by: Mika Westerberg Acked-by: Greg Kroah-Hartman Acked-by: H. Peter Anvin Acked-by: Tony Luck Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed