diff options
author | 2015-03-16 23:49:08 +0100 | |
---|---|---|
committer | 2015-03-16 23:49:08 +0100 | |
commit | ca5b74d2675a44f54aacb919c1cf022463e2f738 (patch) | |
tree | 08081e436bfed580e7f5a059faa1c77da3dbd58e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | driver core / ACPI: Represent ACPI companions using fwnode_handle (diff) | |
download | wireguard-linux-ca5b74d2675a44f54aacb919c1cf022463e2f738.tar.xz wireguard-linux-ca5b74d2675a44f54aacb919c1cf022463e2f738.zip |
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 <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions