ACPI: Add helper acpi_use_parent_companion
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 15 Oct 2023 21:34:25 +0000 (23:34 +0200)
committerWolfram Sang <wsa@kernel.org>
Sat, 28 Oct 2023 13:30:24 +0000 (15:30 +0200)
commit29166faac5486cbc34228431cd049e1c1be451ac
tree1f213c803d9075d76bfe7bdc5eed5ea7d3443ba1
parent3d6cd1af37cb937bb8b65e6047dffc2fb5be7d1c
ACPI: Add helper acpi_use_parent_companion

In several drivers devices use the ACPI companion of the parent.
Add a helper for this use case to avoid code duplication.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
include/linux/acpi.h