From: Rafael J. Wysocki Date: Mon, 16 Mar 2015 22:49:08 +0000 (+0100) Subject: ACPI: Introduce has_acpi_companion() X-Git-Tag: omap-for-v4.2/o2_dc~134^2~5^2~3^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca5b74d2675a44f54aacb919c1cf022463e2f738;p=pandora-kernel.git ACPI: Introduce has_acpi_companion() Now that the ACPI companions of devices are represented by pointers to struct fwnode_handle, it is not quite efficient to check whether or not an ACPI companion of a device is present by evaluating the ACPI_COMPANION() macro. For this reason, introduce a special static inline routine for that, has_acpi_companion(), and update the code to use it where applicable. Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed